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*

5
  • 27
    This might be interesting: hanselman.com/blog/… Commented Mar 16, 2012 at 10:32
  • 10
    The /Date(...)/ format is specific to Microsoft's built-in JSON Date format - it's not part of any standard, and JSON, coming from Javascript, has a standard: The ISO format Javascript specifies: stackoverflow.com/a/15952652/176877 So, this question is specific to Microsoft's JSON Date format. I modified the title to clarify this. Commented Jun 23, 2014 at 7:48
  • 1
    Use Newtonsoft JSON on the .NET side and to have nice typed values on the JS side, just use: github.com/RickStrahl/json.date-extensions Commented May 11, 2017 at 16:54
  • You could use JSON++ instead of JSON. JSON++ is the same than JSON but with support for JavaScript types such as Date. Commented Nov 14, 2018 at 11:06
  • Advice:: the official date format when you are using Json or XML is "yyyy-MM-dd", try to use this format where ever you are writing the API or consume it. Commented Jul 4, 2021 at 22:31