Date.prototype.toISOString and Invalid Date

John Cowan cowan at
Wed Jun 10 11:54:20 PDT 2009

Garrett Smith scripsit:

> ISO 8601 is intended for human consumption.

It's usable by humans, but it's also machine-parseable, particularly
if the usual RFC 3339 subset is being used, as I suppose.

> It would be useful for toISOString to allow the caller to provide a format.

That's overkill, I'd say.

And it was said that ever after, if any                 John Cowan
man looked in that Stone, unless he had a               cowan at
great strength of will to turn it to other    
purpose, he saw only two aged hands withering
in flame.   --"The Pyre of Denethor"

More information about the es5-discuss mailing list