Posted by: vx on: May 25, 2009
Date objects don’t have a built-in compare() method, but comparing dates easy.Don’t look at the Date objects , but rather the values represented by the objects using the Date.getTime() method:
Date.getTime() : Returns the number of milliseconds since midnight January 1, 1970, universal time, for a Date object. Use this method to represent a specific instant [...]
Comments