Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Parsing dates with a two-digit year in a derived class

$
0
0

I am building a custom control that inherits RadDatePicker and overrides the OnParseDateTime method to implement custom parsing logic. One of the requirements of this logic is being able to parse a date in the MM/dd/yy format. Unfortunately, whenever a date is entered in that format, the control changes the CurrentDateTimeText, but not the DateTimeText, and thus the ParseDateTimeValue event is never raised.

 

What's curious is that I have a similar control (derived from RadDateTimePicker) that accepts that format and raises the ParseDateTimeValue event as expected, even without a time value. However, if its InputMode is changed to "DatePicker", then it will no longer parse dates with a two-digit year.

 

Is this a known bug, or am I missing something?


Viewing all articles
Browse latest Browse all 94857

Trending Articles