Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change date format in jqgrid

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.

like image 867
Dhairyashil Avatar asked May 18 '13 11:05

Dhairyashil


1 Answers

Try these:

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

Given here: JQgrid json date format

like image 94
Pragnesh Rupapara Avatar answered Oct 22 '22 12:10

Pragnesh Rupapara