View Full Version : Submit datefield in separate format?

5 May 2010, 1:24 AM
I need to submit the datefield in 'Y-m-d' format, regardless of field current format. Current format depends on current locale.
I think of doing something similar to combobox (Render hidden field with value in valueFormat).

Maybe there is an another way of doing this?

5 May 2010, 1:49 AM
There is not a built in way, but there really should be.

I will bother the Ext developers about this issue because it's a universal requirement. Users want their own input formats, but the server usually requires the submission to be one standard format.

We have an in-house widget here which maintains a hidden field named for the DateField's name, and the visible DateField input has its name stripped so it does not get submitted.

5 May 2010, 5:19 AM
jsakalos did XDateField with configurable Submit-Format here (http://extjs.com/forum/showthread.php?t=25900).
It' also implemented in DatePickerPlus (http://extjs.com/forum/showthread.php?p=148587)

5 May 2010, 11:38 PM
Thank you for the answers.