PDA

View Full Version : new Date not working for Korean format



Simi Thomas
20 Jan 2014, 11:12 PM
Creating new Date('2014. 1. 1') is not working in Firefox and IE.
The same code works in chrome.

2qo

evant
20 Jan 2014, 11:28 PM
Different browsers have different formats available. Use Ext.Date.parse() and provide the appropriate format.

http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.Date

mdnaveed42
22 Jan 2014, 2:28 AM
Ext.Date.format(new Date(), 'Y.m.d') //2014.01.22

Hope this works for you :)

MD Naveed

Simi Thomas
22 Jan 2014, 2:34 AM
Usedd Ext.Date.parse()