In my Actionscript code I have two dates:
var date1:Date = new Date(2011,1,1);
var date2:Date = new Date(2011,1,1);
This doesn't work:
var equal:Boolean = date1 == date2;
From reading I've found that this is a working alternative since it just gets the number of milliseconds from a standard point in time.
var equal:Boolean = date1.getTime() == date2.getTime();
So my questions are:
Thanks in advance.
Re: #4
You can use the ObjectUtil.dateCompare() function to get the results you are looking for.
mx.utils.ObjectUtil.dateCompare()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With