Apr 30, 2012, 3:46 PM
[CLOSED] Date Field - MVC/JSON
I have a date field in JSON coming back to a grid panel. The data in JSON is returning in this manner:
When the data binds with the grid, the date is being displayed is:
Note: The JSON I am returning is automatically generated and I do not have control over the case of the fields.
[Object { RequestID=100000004, TaskName="Prepare Document", TaskDueDate="/Date(1334691950203)/", more...}, Object { RequestID=100000004, TaskName="Notify broker that document is ready", TaskDueDate="/Date(1334692008327)/", more...},
When the data binds with the grid, the date is being displayed is:
/Date(1335374549773)/
However, I have the field datatype set to "Date" and I have the date format:.Type(ModelFieldType.Date).DateFormat("M/d hh:mmtt")
I did notice in the tooltip help that DateFormat is for dates in the "\date\" format. Do you think my date is showing as it is due to the fact that the case does not match what your code is looking for for a date?Note: The JSON I am returning is automatically generated and I do not have control over the case of the fields.
Last edited by Daniil; Apr 30, 2012 at 7:58 PM.
Reason: Please use [CODE] tags, [CLOSED]