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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -