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.
Before you begin: In the layout of the form that you are editing, complete the
following task: Adding a Date time control to a layout.