If I have a method like this:
public static String convertDateTimeToString(DateTime dt) { return dt.getDate() + \" \" + dt.getTime(); }
Whi
Look at SimpleDateFormat class. Here's a tutorial.
You'll need something like this:
String datetimeString; Date result; SimpleDateFormat formatter = new SimpleDateFormat("EEE d MMM yy hh:mm:ss"); result = formatter.parse (datetimeString);