This is basically nothing but Jan 16 2011 10:33:29! ExtJs components like data grid, datepicker do not consume this format and needs to be transformed.
Why does Microsoft serialize DateTime in this form?
1. To express the data as string
2. To express it in numerical form.
The numeric form would be the the number of milliseconds in Universal Coordinated Time (UTC) since epoch. But in either form, we still have the issue of not being able to identify it as date / time. In order to overcome this, MS came up with encoding DateTime values as string in the form:
How to fix it in ExtJS?
Deserializing in ExtJS can be done with the help of Date class. You can use the parseDate static method to convert the serialized date into Date object.
var dt = Date.parseDate(date,'M$'); dt.format('d/m/y');The deserialized dates can be displayed in any desired format! :)
Read other ExtJS related articles!