MaxDate

Applies to

DatePicker controls

Description

Specifies the maximum date that the user can select in the calendar.

Usage


In a painter

StepsTo set the MaxDate property:

  1. Select a date from the drop-down calendar or type a date in the MaxDate field on the General page in the Properties view.


In scripts

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")