Here is an example of a JSON date passed to the client:
"date": {
"date": 14,
"day": 2,
"hours": 0,
"minutes": 0,
"month": 7,
"seconds": 0,
"time": 1344920400000,
"timezoneOffset": 300,
"year": 112
}
How can I display this date in a Kendo grid as MM/dd/yyyy? I have tried:
However, the grid displays [object Object].
"date": {
"date": 14,
"day": 2,
"hours": 0,
"minutes": 0,
"month": 7,
"seconds": 0,
"time": 1344920400000,
"timezoneOffset": 300,
"year": 112
}
How can I display this date in a Kendo grid as MM/dd/yyyy? I have tried:
$(
"#resultsGrid"
).kendoGrid( {
dataSource: {
type:
"json"
},
columns: [
{
field:
"date"
,
title:
"Date"
,
format:
"{0:MM/dd/yyyy}"
}]});
However, the grid displays [object Object].