Answers for "class Date{ public: int dd,mm,yy; Date(int dd1,int mm1, int yy1){ dd = dd1; mm = mm1; yy = yy1; } string getDate(){ string date = tostring(dd)+"/"+tostring(mm)+"/"+tostring(yy); return date; } };"

7

date to string java

Date date = Calendar.getInstance().getTime();  
    DateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");  
    String strDate = dateFormat.format(date);
Posted by: Guest on April-24-2020
-1

java date to string

Format formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String s = formatter.format(date);
Posted by: Guest on September-01-2020

Code answers related to "class Date{ public: int dd,mm,yy; Date(int dd1,int mm1, int yy1){ dd = dd1; mm = mm1; yy = yy1; } string getDate(){ string date = tostring(dd)+"/"+tostring(mm)+"/"+tostring(yy); return date; } };"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language