We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

dateTimePicker and input value

Hello,

I'm having some problems initializing the dateTimePicker.

a form come generated by my db and orm that populate a text input value.
The dateTimePicker does not read the "value" attribute and always put the current time as a starting value.

I have reproduced my problem in the attached file coming from the demo samples, just adding a value attribute and the corresponding dateTimeFormat.

I am missing something?

Attachment: default_c5b05877.zip

3 Replies

HP Harikrishnan P Syncfusion Team July 20, 2015 11:32 AM UTC

Hi Alain,

Thanks for using Syncfusion products.

To specify 24 hour time, the time format has to be HH:mm (capital letters for hours). So please use the date time format as ‘yyyy-MM-dd HH:mm’ and it will work. We have showcased in the following JS playground link please check it.

http://jsplayground.syncfusion.com/o4lsl0df

Please let us know if you have further queries.

Regards,
HariKrishnan


AM Alain Martini July 21, 2015 09:39 AM UTC

Thank you!
what a little pitfall. Now everything works great.


HP Harikrishnan P Syncfusion Team July 22, 2015 04:48 AM UTC

Hi Alain,
 
Thanks for your update. Please get back to us if you would require further assitance, we will be happy to help you.
 
Regards,
HariKrishnan
 

Loader.
Up arrow icon