I have a date that is passed into my JQGrid via a Json string and it looks like
"31/10/2011"
I cannot work out the formatting via the JQGrid documentation. I just want it to appear and then be sortable in the grid.
If I post without formatting, the date looks fine but is not recognised as a date, thus the sorting is all wrong.
If I add the following date formatting to the column
formatter: 'date', formatoptions: { newformat: 'd/m/Y'}
I am getting a date back that looks like this
03/10/2031
I cannot for the life of me work out what the problem is please help.
2011-10-31
or2011-10-31T00:00Z
. If you can make changes on the server side I would recommend you to change the format which produce your server. – Yseulta