date comparison inside a list returned
- by rob
I have a ArrayList returned from a service which contains date-timestamp as String values (with values: 2010-05-06T23:38:18,2010-05-06T23:32:52,2010-04-28T18:23:06,2010-04-27T20:34:02,2010-04-27T20:37:02)
to be more specific, This is part of a parent ArrayList ObjectHistory. This list contains the datestamp and serial number. I need to pick the correct serial number.
Objecthistory is the List object and I need to get the latest timestamp within this ObjectHistory.
I need to pick the latest timestamp from this Arraylist in Java 6.
How should I be doing this? Should I do convert these values into calendar-time? I am in panic mode as this has to be done directly in production.