Telerik RadDatePicker not picking up dates post year 2030

1.6k views Asked by At

I am using RadDatePicker control for start and end date input controls on my form.
I am taking "01/01/1980" as min date and "12/31/2049" as max date. I am facing a problem when I enter the date manually in Date text box.

Scenario 1: I enter date as 123129. RadPicker correctly picks it up as 12/31/2029 and displays the formatted date value.
Scenario 2: I enter date as 123130. I get a client side validation warning. No matter what day and month I enter, it freezes every time on year greater than XX/XX/29 (2029).
Scenario 3: I enter date as 12312030 - complete year instead of just last 2 digits. RadPicker correctly picks it up as 12/31/2030 and displays the formatted date value.

I tested all 3 scenarios on ASP.NET Calendar Demo - DatePicker - First Look as well.

I am not sure why the validation kicks in even when the max date is set as 12/31/2049.
Please assist me in resolving this issue.

Thanks,
Vaibhav

1

There are 1 answers

0
vikzzz On

"The years starting from 30 and greater are parsed as 19.. like if u say 30th(year) it would get it like 1930, 123130 will be parsed as 12/31/1930. this is invalid because the default value of the MinDate i.e. 1/1/1980. In Order to solve this set the ShortYearCenturyEnd property of the DateInput to 2099.

Hope i answered the question.