How does the parsing of a directly entered time work?

2 posts, 0 answers
  1. Bettina
    Bettina avatar
    1 posts
    Member since:
    Sep 2011

    Posted 20 Sep 2011 Link to this post


    the user wants to enter the time directly in a RadTimePicker.
    If he enters "00:59" everything is fine. But if he uses "0059" instead, the result is "05:09".
    That's surprising and not reasonable for the user.

    Other examples for this behaviour are:
    "0201" => "20:01"
    "0022" => "22:00"

    Is there any reason for this behaviour?

    Thanks for your help.
    Kind Regards
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 23 Sep 2011 Link to this post

    Hi Bettina,

    This behaviour is by design and the logic is that the entered number is transformed to fit best for the 24 hour format. But the visualization is according to the culture of the computer.
    I can suggest you to implement custom time parsing to fit your requirements. You can find more information in this help article.

    Hope this helps.

    Kind regards,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top