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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dateTimePicker and input value

Thread ID:

Created:

Updated:

Platform:

Replies:

119654 Jul 18,2015 05:04 AM UTC Jul 22,2015 04:48 AM UTC JavaScript 3
loading
Tags: ejDateTimePicker
Alain Martini
Asked On July 18, 2015 05:04 AM UTC

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

Harikrishnan P [Syncfusion]
Replied On 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

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

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

Harikrishnan P [Syncfusion]
Replied On 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
 

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;