asp.net - JQgrid date format in dd-MMM-yyyy -
i using jqgrid , our date showing in 20-nov-14 format want display date in 20-nov-2014 format sortable propertiy true.
{ name: 'dateofbirth', index: 'dateofbirth',sortable: true, width: 30, formatter: 'date', formatoptions: { newformat: 'd-m-y' } }
you should use
formatter: 'date', formatoptions: { newformat: 'd-m-y' } with y instead of y. way jqgrid uses php date format in format options.
Comments
Post a Comment