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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -