How to change date format in jqgrid

36,562

Try these:

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

Given here: JQgrid json date format

Share:
36,562
Dhairyashil
Author by

Dhairyashil

Live and Love to Code!!!

Updated on July 17, 2020

Comments

  • Dhairyashil
    Dhairyashil almost 4 years

    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.

  • Rookie007
    Rookie007 almost 10 years
    if that is the case how to change this format 2014-06-11 10:06:41.0 to 11/06/2014 10:06:41 in JqGrid ? Please help.. Thanks
  • Pragnesh Rupapara
    Pragnesh Rupapara almost 10 years