Version

MaxDate Property

Returns or sets the preferred maximum date that can be selected or activated for the control.
Syntax
'Declaration
 
Public Property MaxDate As Date
public DateTime MaxDate {get; set;}
Remarks

The MaxDate and MinDate are used to control the range of dates that are available to the end user. Days outside that range will not be displayed.

The DisabledDates and DisabledDaysOfWeek may be used to prevent selection/activation of dates within the MinDate/MaxDate range.

Note: The actual range available could be smaller than that specified by the MinDate and MaxDate if it is outside the values allowed by the System.Globalization.Calendar.MaxSupportedDateTime and System.Globalization.Calendar.MinSupportedDateTime of the culture used by the control. The culture used is based upon the System.Windows.FrameworkElement.Language property.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also