如何从所有浏览器支持的 extjs 4.0 中的日期字段中仅获取02/8/2013 mm/dd/yyyy之类的日期。
我的代码如下
items: [{
xtype: 'datefield',
fieldLabel: 'Date',
format: 'm/d/Y',
altFormats: 'm/d/Y',
},
我从这个字段中得到一个像这样的值
date = Ext.getCmp('configuration-section-contact-form-date-of-issue').getValue();
通过使用上面的行,我得到了完整的 UTC 时间,但我只想要像 02/8/2013 这样的日期。我怎样才能得到请帮助我。谢谢..