Independent Date and Time objects/ISO Dates

Lars T Hansen lth at
Tue May 15 14:19:50 PDT 2007

On 5/15/07, mkaply <mozilla at> wrote:
> In my work with microformats, I'm finding that the Date object is not very
> useful for representing a date without a time. Has any thought been given to
> having separate Date and Time objects?

Some minor discussion last year but nothing serious.  The Date object
represents a time stamp in milliseconds relative to a known time, so
really represents both date and time.  Why is this not adequate?

> In addition, has any thought been giving to allowing the construction of
> Date objects using ISO dates or allowing Date objects to output as ISO
> Dates.

A subset of ISO date format has been incorporated into the proposed
revision, with a requirement that Date.parse must be able to parse it
and Date.toISOString must generate it.


> Thank you.
> Mike Kaply
> --
> View this message in context:
> Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at
> _______________________________________________
> Es4-discuss mailing list
> Es4-discuss at

More information about the Es4-discuss mailing list