Skip to main content

CalendarProperties.MinDate Property

Gets or sets the minimum date allowed to be entered into the editor by an end-user.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


[DefaultValue(typeof(DateTime), "")]
public virtual DateTime MinDate { get; set; }

Property Value

Type Default Description
DateTime String.Empty

A DateTime object that specifies the editor’s minimum allowed date.


Use the MinDate and CalendarProperties.MaxDate properties to limit user input to dates falling within a specific range. The MinDate property specifies the low limit of the allowed date range.

Dates which are out of the specified range cannot be entered into the calendar editor by end-users. These dates are displayed using a specific style (ASPxCalendar.DayOutOfRangeStyle) and don’t respond to user clicks.

Note that programmatic manipulation on the calendar editor’s value isn’t limited by the MinDate and CalendarProperties.MaxDate property values.


The MinDate property synchronizes its value with the calendar’s ASPxCalendar.MinDate property.


This example demonstrates how end-user input can be limited by defining a specific date range within the ASPxCalendar control.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="DevExpress.Web.v8.3, Version=, Culture=neutral, 
PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

<script runat="server">

 <html xmlns="" >
 <head id="Head1" runat="server">
     <title>Max and Min Dates of ASPxCalendar</title>
     <form id="form1" runat="server">
         <dxe:ASPxCalendar ID="ASPxCalendar1" runat="server" MaxDate="2007-08-24" 
         MinDate="2007-08-08" SelectedDate="2007-08-16">
See Also