A date object has a .time property, "The number of milliseconds since midnight January 1, 1970, universal time, for a Date object." Just take the end date and see if the time property is greater than the start date.
quick example: var startDate:Date = new Date(); var endDate:Date = new Date(); if(startDate.time > endDate.time) { trace("start is after end"); } else if (startDate.time < endDate.time) { trace("start is before end"); } else { trace("the dates are the same"); } On Wed, Apr 22, 2009 at 11:54 AM, Richard Rodseth <rrods...@gmail.com>wrote: > > > There are also some date utilities in as3corelib, I believe. > > > On Wed, Apr 22, 2009 at 11:14 AM, ilikeflex <ilikef...@yahoo.com> wrote: > >> >> >> >> ObjectUtil.compareDates >> >> Please check the method name in ObjectUtil class. >> >> >> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, >> "markflex2007" <markflex2...@...> wrote: >> > >> > Hi, >> > >> > I have two mx:DateField fields that are start date and end date.and I >> need validate to see if the end date > = start date. >> > >> > I do not know how to compare the two date fields. >> > >> > Please help me. >> > >> > Thanks >> > >> > >> > MK >> > >> >> > > -- Cheers, Nate ---------------------------------------- http://blog.natebeck.net