PDA

View Full Version : Compare Dates


Jack
05-13-2005, 09:28 AM
I am writing an application, I want to be able to compare one date against another, so that one date cannot be earlier than another.
Any help gratefully received.
Jack

Zee
05-21-2005, 01:48 PM
Simply use the less than operator... JavaScript will invoke valueOf (member of JS 'Object' that returns an integer value) on the date object (similar idea as the idea behind toString.)

Regards