Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 6
    The JavaScript Date constructor can parse the string for you: new Date("2009-04-12T20:44:55") Commented Jun 19, 2013 at 18:00
  • 5
    Warning - The Date() Constructor formats and parsing are non-standard before ECMAScript 6. For example, IE 9 treats the date you give the constructor as a local time even if it is in IS0-8601 whichs is implied as UCT everywhere else. Don't rely on the date constructor if you support older browsers. codeofmatt.com/2013/06/07/… Commented Sep 22, 2014 at 17:56
  • Sending non-UTC date will sooner or later get you into trouble. Commented Jul 17, 2016 at 22:59