date comparison inside a list returned

Posted by rob on Stack Overflow See other posts from Stack Overflow or by rob
Published on 2010-05-07T16:38:01Z Indexed on 2010/05/07 16:58 UTC
Read the original article Hit count: 120

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about arraylist