Approved
Last Updated: 03 Jan 2017 21:02 by Chris
ADMIN
Telerik Admin
Created on: 13 Mar 2013 11:48
Category: DateTimePicker
Type: Feature Request
6
DateTimePicker: Implement “The 2029 Rule” two-digit year parsing
Implement two-digit year parsing referred as €œThe 2029 Rule€ in the control like the parsing in Excel.
Examples:
In Excel: typing 1/1/70 returns 1/1/1970
In RadDatePicker: typing 1/1/70 returns 1/1/2070
For more information use the description at this link
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
Chris
Posted on: 13 Mar 2013 17:50
Interpretation of the Two Year rule, is supposed to come from:
System.Globalization.CultureInfo.CurrentCulture.Calendar.TwoDigitYearMax

It determined by the operating system.

See the following documentation.
http://msdn.microsoft.com/en-us/library/system
Chris
Posted on: 13 Mar 2013 17:57
Telerik code appears to be just using the current century, and not using the system desginated rule for two digit years.
Telerik.Windows.Controls.DateParser.SetYear(DateTime current, int n)