Skip to main content

DateRangeAttribute.MaxDayCount Property

Gets or sets the maximum number of days in a range.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5


public int MaxDayCount { get; set; }

Property Value

Type Description

A Int32 value that specifies the maximum number of days.


The DateEdit provides the capability to select a date range. You can use the DateRangeAttribute.MinDayCount and MaxDayCount properties to limit the number of days in a range.


The DateRangeAttribute attribute should decorate the model field to which the end DateEdit is bound. The attribute that decorates the model field for the start-date editor is not in effect.

See Also