DateTimePicker Issue with miliseconds

3 posts, 0 answers
  1. Rene
    Rene avatar
    8 posts
    Member since:
    Jan 2014

    Posted 13 May 2015 Link to this post

    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. Rene
    Rene avatar
    8 posts
    Member since:
    Jan 2014

    Posted 13 May 2015 Link to this post

    Seems like i posted the thread 3 times now. I got an Internal Error 500 when I clicked "Create Thread"
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 15 May 2015 Link to this post

    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
Back to Top