Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (11 sloc) 442 Bytes
title version signature
ASP.NET JSON Date
1.3.0
moment(String);

Microsoft Web API returns JSON dates in proper ISO-8601 format by default, but older ASP.NET technologies may return dates in JSON as /Date(1198908717056)/ or /Date(1198908717056-0700)/

If a string that matches this format is passed in, it will be parsed correctly.

moment("/Date(1198908717056-0700)/"); // 2007-12-28T23:11:57.056-07:00
You can’t perform that action at this time.