1292Re: [json] Re: Full ISO 8601 Date Parser Plus Unobtrusive toISOString
- Jul 5, 2009The NaN case should be a constructor problem, no? To extend
Date.prototype.toISOString = Date.ISO("2000").toISOString;
On Jul 6, 2009 1:41 AM, "joel.finch@..." <joel@...> wrote:
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
--- In email@example.com, Andrea Giammarchi <andrea.giammarchi@...>
wrote: > > Maybe this stuff...
> [Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>