DatePicker controls
Specifies the maximum date that the user can select in the calendar.
Select a date from the drop-down calendar or type a date in the MaxDate field on the General page in the Properties view.
The MaxDate property takes a Date value. The default is December 31, 2999. You can change this setting to restrict the range of dates a user can select. This example sets MaxDate to June 30, 2007:
dp_1.MaxDate = Date("2007/06/30")