Home › Forums › WPF controls › Xceed DataGrid for WPF › DatePicker behavior for 2 digits year (Century)
Is it possible to influence the behavior of the DatePicker control with regard to what century it chooses for incomplete year input?
I.e. in our application we don’t want to have dates in the future, so if someone enters 10 for year, it should result in 1910 and not 2010.
Imported from legacy forums. Posted by Nrashn (had 380 views)
The DatePicker’s behavior is currently based on the CurrentCulture.Calendar.TwoDigitYearMax property.
If you change the current culture’s Calendar.TwoDigitYearMax to 2007, then inputing 07 will result in the year 2007 and inputing 08 will result in 1908.
Imported from legacy forums. Posted by Marcus [Xceed] (had 175 views)
Thank you very much for the quick answer.
Imported from legacy forums. Posted by Nrashn (had 3281 views)