I have used an Ext Datepicker
in my panel using the following code snipped in items:
{
xtype: 'datefield',
id : 'usap3',
anchor: '100%',
name: 'date',
margin: '2 0 2 20',
format: 'd/m/Y',
width: 320,
altFormats: 'd-M-y',
fieldStyle: 'text-align: center;',
height: 26, editable: false,
fieldLabel: date+'<span style="color: red"> * </span>',
labelWidth: 120
}
After selecting the date, I find that the output of the date format changes in different servers, different browsers or may be the change in the format is due to something else (which I am not sure of). The different formats I found where
Tue Nov 24 2015 00:00:00 GMT+0530 (India Standard Time)
&
Mon Nov 7 00:00:00 UTC+0530 2016
.
Is there a way to specify the output format of our date from the ExtJs datefield
?