Share via


Visual Basic: Windows Controls

MaxDate, MinDate Properties

See Also   Example   Applies To

Returns or sets the first and last date allowed by the calendar.

Syntax

object.MaxDate [= date]

object.MinDate [= date]

The MaxDate and MinDate property syntaxs have these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
date A date expressionthat evaluates to a valid date.

Remarks

The MaxDate property is used to set the upper boundary of the calendar.

The MinDate property is used to set the lower boundary of the calendar.