PDA

View Full Version : DateField / TimeField submitFormat??



htammen
24 Feb 2011, 3:32 AM
At the moment if you have a TimeField (same with DateField) with a format e.g. "H:i" Ext submits this with this format to the server (e.g. 10:30).
Is there a way to tell Ext that it should submit the value with a different format e.g. ISO 8601 date?

I´ve seen that there was an extension for Ext 2.x and probably 3.x. Shouldn´t this be something for the core Ext classes? The Ext.util.Date class has already default values for date/time sections that weren´t filled by the user.

evant
24 Feb 2011, 3:41 AM
I added such a thing the other day to DateField.

htammen
24 Feb 2011, 3:58 AM
Could you please add it to TimeField too?
This would make my backend life much easier because I could use the server side date parsing functions resp. data binding features.

evant
24 Feb 2011, 4:46 AM
Done!