Personally, I think this would have to extend the Date prototype to be fully
useful; like json2.js, its value is in allowing us to write script now using the
correct future syntax of ECMAScript 5.
Incidentally, your toISOString function doesn't have handling for the NaN case.
--- In json@yahoogroups.com, Andrea Giammarchi <andrea.giammarchi@...> wrote:
>
> Maybe this stuff could be interesting for json2.js file as well, or maybe
> not.
> It is a quick and full specs ISO strings parser, really fast, widely
> compatible, unobtrusive, since Date.prototype is not touched (it could be
> touched if everybody agrees about it)
>
http://webreflection.blogspot.com/2009/07/ecmascript-iso-date-for-every-browser.\
html
>
> Regards
>
>
> [Non-text portions of this message have been removed]
>