Ticket #2778 (closed feature: fixed)
add ISO date parsing and toISOString for dates
| Reported by: | tschaub | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.10 Release |
| Component: | BaseTypes | Version: | 2.9 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
The ECMA-262 (v5) spec defines a toISOString method on date objects. It also specifies the format for the Date.parse method (previously unspecified). The string format follows RFC 3339, a profile of ISO 8601 for timestamps on the Internet.
Browsers are beginning to implement ECMA-262. Firefox, for example, currently (3.6.8) implements toISOString and the specified Date.parse format. Safari (5.0) supports toISOString but does not parse the same format for Date.parse. Chrome is similar. IE is hopeless.
We can provide a cross-browser implementation of toISOString and Date.parse and default to the native methods if available.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

