You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
Loading iso8601.js extends the Date prototype with two functions: setISO8601 and iso8601, and adds a parsing helper: Date.iso8601. As ISO8601 W3C profile is one of the most common ways to serialize dates and times in JSON, you may find this useful.
Date.iso8601("2011-02-19T18:30:56.076Z");// Sat Feb 19 2011 10:30:56 GMT-0800 (PST)
Notes
Date.prototype.setISO8601 is provided for consistency with the other Date prototype functions. It takes an ISO8601 string, sets the receiver's value to the date represented therein, and returns undefined.