Independent Date and Time objects/ISO Dates
mozilla at kaply.com
Tue May 15 14:31:14 PDT 2007
Lars T Hansen-2 wrote:
> 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?
An ISO date does not need to contain a time. So how would an ISO only date
be parsed into a Date object and then output as the same date only item?
Right now if you give JS a date, it assumes a time. You need to be able to
pass in a date with no time, have it stored as a date only with no time and
then retrieve it as a date. ToLocaleString for instance on a date only
should produce just a date with no time.
View this message in context: http://www.nabble.com/Independent-Date-and-Time-objects-ISO-Dates-tf3760992.html#a10631582
Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at Nabble.com.
More information about the Es4-discuss