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

DateTimePicker Problem

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff Tang
Top achievements
Rank 1
Jeff Tang asked on 15 Oct 2008, 03:51 AM
I already set the date format of the date input to "dd/MM/yyyy HH:mm", but some user may type in "dd/MM/yyyy HHmm" or "ddMMyyyy HH:mm" instead of using the calander and timeview, so it is invalid. 

Do you have any suggestion to cope with this problem?

Can I force the user to input a specific format of datetime by typing? I mean can the DateTimePicker already contains the separator "/ / :" and if the user only need to type in the number to represent the datetime?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Oct 2008, 07:33 AM
Hello Jeff,

You can use RadMaskedTextBox and parse the entered value as DateTime in order to achieve such functionality which is not supported out-of-the-box.

RadMaskedTextBox example:
IP Address

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Jeff Tang
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or