This is a migrated thread and some comments may be shown as answers.

Date/time format on first display

1 Answer 70 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Jerzy Rzaniak
Top achievements
Rank 1
Jerzy Rzaniak asked on 29 Nov 2012, 11:17 PM
Hi,
I have DateTimePicker on the page but it ignores any  format configuration settings on first render.
This code:
$("#absStart").kendoDateTimePicker({format: "dd-MM-yyyy HH:mm", timeFormat:"HH:mm" }); 
renders:
11/1/2012 2:20:00 PM
After selecting date or time everything is ok
I forgot something?
jr

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 30 Nov 2012, 05:13 PM
Hello Jerzy,

 
The widget works just fine on my end. Check this jsBin demo for more information. Please note that the input's value should be in the correct format - the one defined during the init. If you need to support more parse formats, define the parseFormats option.

Kind regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Date/Time Pickers
Asked by
Jerzy Rzaniak
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or