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

[Solved] DatePicker Validation

1 Answer 146 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick
Top achievements
Rank 1
Patrick asked on 05 Apr 2012, 08:40 PM
In the demos, 1/15/12 displays a validation error while 1/15/2012 is valid.
How can I make the DatePicker accept 2 and 4 digit years?

Thanks,
Nick

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 06 Apr 2012, 11:28 AM
Hi Nick,

Just a quick clarification - DateTimePicker component supports only one format at the time. In other words if you define "MM/dd/yyyy" format then two digits year is not allowed, as if the format is "MM/dd/yy" then the four digits year is not allowed.

Regards,
Iliana Nikolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Date/Time Pickers
Asked by
Patrick
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or