Search code examples
jsonjqgriddatetime-formatjqgrid-asp.net

Why jqGrid can't convert serialized datetime json?


enter image description here

Hi, Everythink perfect without datetime on jqGrid :S How to fix this convertion problem?


Solution

  • You can try this in your ColModel

    {name: 'colNmae', index: 'ColName', formatoptions: { srcformat: "ISO8601Long", newformat: "m/d/Y h:i A" }}
    

    Or this

    {name: 'colNmae', index: 'ColName', sorttype: 'date', formatter: 'date', datefmt: 'd-M-Y'},