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

DateTimePicker Issue with miliseconds

2 Answers 391 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Rene
Top achievements
Rank 1
Rene asked on 13 May 2015, 08:00 AM

Hey,i try to display to also display the miliseconds in the DateTime Picker. I changed the format like so:

dpDate.DisplayFormat = Telerik.Windows.Controls.DateTimePickerFormat.Short;
dpDate.Culture = new System.Globalization.CultureInfo(CultureInfo.CurrentUICulture.LCID);
dpDate.Culture.DateTimeFormat.ShortTimePattern = "HH:mm:ss fff";

As soon as I manually change the time in the textbox for example to 13.05.2015 09:57:40 200 and hit return, the selected datetime & textbox text will reset to 13.05.2015 09:57:40 000. What am I doing wrong? ​

2 Answers, 1 is accepted

Sort by
0
Rene
Top achievements
Rank 1
answered on 13 May 2015, 08:01 AM
Seems like i posted the thread 3 times now. I got an Internal Error 500 when I clicked "Create Thread"
0
Kalin
Telerik team
answered on 15 May 2015, 10:06 AM
Hi Rene,

I deleted the other duplicate forum threads. As for your question - you would need to implement a custom parsing that will also parse the milliseconds of the input string. For sample implementation please check the attached project.

Hope this helps.

Regards,
Kalin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DatePicker
Asked by
Rene
Top achievements
Rank 1
Answers by
Rene
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or