Ticket #2529743 (assigned enhancement)

Reporter


Gabe Moothart
Opened: 01/5/11
Last modified: 11/27/12
Status: assigned
Type: enhancement

Owner


Satyen Desai
Target Release:
Priority: P3 (normal)
Summary: Y.DataType.Date.parse should support the Microsoft Json format for dates
Description:

The Microsoft Json serializer serializes dates in a specific format:

/Date(1198908717056)/

Where the number is a number of milliseconds since 1/1/1970 (which the Date constructor accepts). Microsoft developers who use YUI need to manually parse this into a proper js date. It would be much
nicer for it to be provided as part of Date.parse()

More info on the Microsoft json date format:
http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx
http://stackoverflow.com/questions/206384/how-to-format-json-date

Type: enhancement Observed in Version: development master
Component: DataType-Date Severity: S3 (normal)
Assigned To: Satyen Desai Target Release:
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Gabe Moothart

YUI Contributor

Posted: 01/5/11

Philip Tellis

YUI Contributor

Posted: 11/27/12

Assigning to Satyen so he can do something about it.

I've looked at the patch and suggested a few modifications, but I think the idea's right.