Skip to main content

DxDateEdit<T>.MaxDate Property

Specifies the maximum date that can be selected in the Date Edit.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll


public DateTime MaxDate { get; set; }

Property Value

Type Description

A DateTime value that specifies the maximum date.


Use the MinDate and MaxDate properties to specify a range of available dates. The Date Edit’s calendar disables dates that are out of the range and hides navigation arrows for them. If a user types a date that is out of the range, the Date Edit keeps the previously selected date.

The default minimum and maximum values are System.DateTime.MinValue and System.DateTime.MaxValue.


The maximum date should be greater than the minimum date. Otherwise, an exception occurs.

<DxDateEdit Date="DateTime.Today"
            MinDate="@(new DateTime(2020, 06, 11))" 
            MaxDate="@(new DateTime(2020, 06, 25))" />

The maximum date

Run Demo: Date Edit — Date Range

In scroll picker mode, the Date Edit component shows a notification message each time a user tries to navigate to a date that is out of the range. To customize the notification text, use the OutOfRangeNotificationText property.

See Also