Independent Date and Time objects/ISO Dates

Igor Bukanov igor at
Tue May 15 14:26:12 PDT 2007

On 15/05/07, mkaply <mozilla at> wrote:
> 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.

The output part is already available in SpiderMokey through
d.toLocaleFormat("%Y-%m-%d") where d is an instance of Date as there
toLocaleFormat is effectively a wrapper around strftime. Perhaps
instead of inventing  Date.toSomeParticularDateFormat and
corresponding Date.parseSomeParticularFormat ES4 should just provide
functionality available in C via strftime / strptime?

Regards, Igor

More information about the Es4-discuss mailing list