I have a string like this: 2014-08-20T00:00:00
is possible to convert in a Date (not a string) like this: 20/08/2014
(must be a java.util.Date
not a String)
Is possible?
I have a string like this: 2014-08-20T00:00:00
is possible to convert in a Date (not a string) like this: 20/08/2014
(must be a java.util.Date
not a String)
Is possible?
Use SimpleDateFormat for this:
String s ="2014-08-20T00:00:00";
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
System.out.println(df.parseObject(s));