How to change date format in jqgrid

Dhairyashil picture Dhairyashil · May 18, 2013 · Viewed 35.6k times · Source

I have one issue related to jqgrid. I have date shown in jqgrid table like "FRI MAY 17 00:00:00 IST 2013" .I want to change its format to "17/5/2013".how i can do it?

{name:'checkin', index:'checkin', width:60, searchoptions:{sopt:['eq']}},

this is my code.

Answer

Pragnesh Rupapara picture Pragnesh Rupapara · May 18, 2013

Try these:

formatter: 'date', formatoptions: { srcformat: 'd/m/Y', newformat: 'd/m/Y'}

Given here: JQgrid json date format