| Issue 1122: | Parse custom date formats | |
| 1 person starred this issue and may be notified of changes. | Back to list |
The .net javascript serializer encodes dates into a string that looks like this: /Date(unixtimestamp)/ See here for more information: http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx I've patched in support for this by adding the following to your parseDate() if (s.match(/^\/Date\((-?\d+)\)?\/$/)) { // .net js serializer return new Date(parseInt(s.match(/^\/Date\((-?\d+)\)?\/$/)[1])); }
Aug 13, 2013
(No comment was entered for this change.)
Summary:
Parse custom date formats
(was: parse custom date formats)
Labels: Type-Feature
Nov 26, 2014
I would recommend closing this issue, as in the FC v2.x series you can use the parsing support from Moment.js; see http://momentjs.com/docs/#/parsing/ for details. And specifically for the original feature request see http://momentjs.com/docs/#/parsing/asp-net-json-date/
Nov 26, 2014
Ah yes, since FullCalendar v2.0, which uses Moment, this ASP.NET date format is now accepted.
Status:
Released
|
|
| ► Sign in to add a comment |
Status: Accepted