I am using radDateInput for the date control, but when I enter 00002008 and tab out its displaying 12/31/2006 and if I enter 0000 and tab out its displaying 06/26/2000. Why is it showing such a weird behaviour, am I doing something worng?
Thanks
Vinay
3 Answers, 1 is accepted
0
Dimo
Telerik team
answered on 27 Jun 2008, 10:23 AM
Hi Vinay,
The DateInput controls tries to parse every input string according to the following rules:
As you can see, sometimes the control can be "tricked" into parsing invalid strings into date values, which are not expected. We researched and it seems that a problem occurs when the input string has two zeros at the beginning. We will try to fix that for a future release.
In the meantime, you can use some client-side validation to prevent users from inputting values such as "0000".
This problem is still occurring in the current release
2008.3.1314
Can we expect the fix in the next release?
thanks
0
Dimo
Telerik team
answered on 20 Feb 2009, 02:14 PM
Hello Jacques,
We are currently working on this behavior, however, we cannot commit that it will be ready for the next release. We need some time to research and test, so that some breaking changes are not introduced, or at least not many. Thank you for your patience.