views:

90

answers:

1

Hi, I have two date time strings formated like so; 29/09/2009 15:19 & 29/09/2009 17:19 and basiclly all i want to do is compare the two date and time to see which is greater

Any Help?

+2  A: 
if ( Date.parse ( firstDateString ) > Date.parse ( secondDateString ) ) {
    // first date is greater
}
Jan Hančič