Hello
If I have a method like this:
public static String convertDateTimeToString(DateTime dt) {
return dt.getDate() + " " + dt.getTime();
}
Which takes a Datetime object of my own which contains a Java.sql.date and a Java.sql.time, what is the best way of reversing the process so that I can substring a Java.sql.date and a Java.sql.time from a string?
Or if DateTime dt is a JodaTime DateTime object?
If this can be done without reference to Java.util.date.
Thanks
Mr Morgan.