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

How does the parsing of a directly entered time work?

1 Answer 39 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Bettina
Top achievements
Rank 1
Bettina asked on 20 Sep 2011, 02:01 PM
Hi,

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
    Bettina 

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 23 Sep 2011, 02:50 PM
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,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
TimePicker
Asked by
Bettina
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or