You are here: User interface > Controls > Standard controls > Restricting the years displayed

Restricting the years displayed

To make it easier for users to select valid dates, you can restrict the number of years that are displayed relative to, and including, the current date. At run time, only values that fall within the range of dates that you specify are visible on the calendar widget or available by using spinners or drop-down fields.

Prerequisite: Add a DateTime control to a layout.