I am using Ext.form.DateField with the specified format: 'dm-Y', for example:
var sellingDate = new Ext.form.DateField({ fieldLabel : "Selling date", width : 180, name: 'sellingDate', format: 'dm-Y', allowBlank : false });
I want this component to automatically execute an input value with a given format after losing focus. I mean, if I enter the text “040212” ( February 4, 2012 ), in my country we use “dd-mm-YYYY” as the standard date format), it should display this text as '04 -02 -2012 .
But when debugging on the event "change" of DateField, I see that the processed Date object is "Mon Apr 02 2012 ". I do not know how to make it work, as I expect above. Is there a way to get the source text from a date field and not a processed Date object? Could you help me with this? Thank you very much!
source share