Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get Date From DateField In ExtJs

How can I get only date like 02/8/2013 mm/dd/yyyy from datefield in extjs 4.0 supported on all browser.

my code is as follows

   items: [{                  
                xtype: 'datefield',
                fieldLabel: 'Date',
                format: 'm/d/Y',
                altFormats: 'm/d/Y',

            },

and i am getting a value from this field like this

date = Ext.getCmp('configuration-section-contact-form-date-of-issue').getValue();

by using above line i get complete UTC time but I want only date like 02/8/2013.how can i get please help me. thanks..

like image 261
user2000423 Avatar asked Feb 17 '23 13:02

user2000423


1 Answers

You can use:

dateField.getSubmitValue();

See live example on jsfiddle

like image 145
Vlad Avatar answered Feb 20 '23 04:02

Vlad