Error with jqgrid date formatting -
server returning string date in format "2/6/2013"
after bind formatter, appears this: "12/4/2007"
.
{ name: 'duedate', index: 'duedate', width: 110, align: 'center', resizable: false, formatter:'date', formatoptions: { newformat: 'm/d/y' }, datefmt: 'm/d/y' }
why?
try specifying source format in formatoptions
.
ie;
formatoptions: { srcformat:'d/m/y',newformat: 'm/d/y' },
or can use custom formatter described here
Comments
Post a Comment