[mochikit] Re: Comparing dates

2007-10-07 Thread Stan Rogers
More to the point here, Date() returns a string the way you are using it, not a date object. If you want a date object to compare, use the "new" keyword. (Date objects can be directly compared with >, < and =, since they have a single scalar data member and collapse to a milliseconds-after-epoch v

[mochikit] Re: Comparing dates

2007-08-28 Thread Bob Ippolito
On 8/28/07, grum <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I'm having problems comparing the following: > > isoTimestamp("2007-08-13T04:00:00+00:00") > > which gives me: > > Mon Aug 13 2007 00:00:00 GMT-0400 (EDT) > > and: > > Date() > > which (right now) gives me: > > "Tue Aug 28 2007 16:14