I need the comparision between two dates, the < and >
works fairly but == do not show result even if two dates are equal.
Right now i am equating it by taking date,month,year,hour,time from
two dates. Is there any direct way two find whether two dates are
equal or not.
Date are usually stored a number a millisecond from a
reference point, in flex this reference is midnight January 1,
1970. There are two ways to get this number: time property or the
valueOf() method. So
var d1:Date = ...
var d2:Date = ...
if (d1.time == d2.time) or if (d1.valueOf() == d2.valueOf())