Revision: 5829
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 7, 2008 01:20 by chrisaiv
Initial Code
cmpDat = new Array(2007, 12, 2, 0, 0, 0); /* year mon day hr min sec */ function compareDates(cmpDat){ var jd:Date = new Date(); var zd:Date = new Date(cmpDat[0], cmpDat[1]-1, cmpDat[2], cmpDat[3], cmpDat[4], cmpDat[5], 0); if(zd.getTime()<jd.getTime()){ return true; } else { return false; } } // the time is now? (true / false) if(compareDates(cmpDat)){ trace('ok das wars dann'); }
Initial URL
http://snippets.dzone.com/posts/show/4735
Initial Description
This should come in handy some day.
Initial Title
Compare Two Dates
Initial Tags
Initial Language
ActionScript 3