When using the date picker with time enabled, I can get the values displayed properly but when I post the form I only get the date value not the time. This is my code:
Do you apply any formatting to the datepicker result either on client or on server?
By default, datepicker equipped with a timepicker returns a date object that contains time info.
Hi Helga,
Thanks for replying. As you can see above the format is set to “%d %M %Y - %H:%i”. which displays in the field fine. But when I post that field all I get is the date in the format 2014-10-13. Which seems odd?
I didn’t notice that you use datepicker stringResult property.
When it is defined for the control, the date object return formatted with the help of a parseFormat of the locale in use. By default, North American locale is used, so the parseFormat is “%Y-%m-%d”.
But you can redefine this format, once for the whole application: