date renderer issue in extjs

Posted by harsh on Stack Overflow See other posts from Stack Overflow or by harsh
Published on 2010-03-11T21:01:36Z Indexed on 2010/03/11 21:04 UTC
Read the original article Hit count: 1146

Filed under:

Hi,

I have a date renderer issue for a column. when browser language is in english the date is displayed in this format

09/14/2009 09:23 AM

But when i change the browser language to german(or any other language except english) the date is not rendered it displays NAN/NAN/NAN 12:NAN PM

Here is the code..

var dateRenderer = Ext.util.Format.dateRenderer('m/d/Y h:i A');

var colModel = new Ext.grid.ColumnModel([ { header: xppo.st('SDE_DATE_OCCURRED'), width: 75, sortable: true, dataIndex: 'DateOccurred', renderer: dateRenderer } ]);

How can i render the date in other languages.Please help me with this issue.

Thanks

© Stack Overflow or respective owner

Related posts about extjs