Home Forums WPF controls Xceed DataGrid for WPF DatePicker behavior for 2 digits year (Century)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25105 |

    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)

    Xceed Support
    Member
    Post count: 5658

    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)

    User (Old forums)
    Member
    Post count: 23064

    Thank you very much for the quick answer.

    Imported from legacy forums. Posted by Nrashn (had 3281 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.