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

Bug in date validation

1 Answer 28 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
David Mullings
Top achievements
Rank 1
David Mullings asked on 23 Jun 2009, 02:15 PM
Hello,

I was able to enter "1 month ago" in the date field and the system translated the date to "6/1/2009". If I enter "2 days ago" it translated it to "6/20/2009." It seems as long as the first characters of the value entered is numeric the system translates that into a the particular date. Interestingly, if I enter "32 days ago", it translates that into "6/23/1932". To me this should be a classfied as bug since the control should not accept dates that includes this wide range of alpha characters. I use this control throughout my app and having to write handlers to trap this each time would be a great burden.

David

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 26 Jun 2009, 12:14 PM
Hello David,

Generally you can prevent this kind of parsing of RadDateInput and set value that is "valid"  in the context of your scenario. You can find example demonstrating similar behavior on the links below:
Input / Handle OnError Event
Parsing Dates

Regard,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
David Mullings
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or