# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate*">MaxDate Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate">MaxDate</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum possible value of the range element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTime MaxDate { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property MaxDate As Date</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value which indicates the maximum date of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.html">GcDateTime</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      Its default value is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime.maxvalue">DateTime.MaxValue</a>. When user spin the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_Value">Value</a> property 
      exceed the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate">MaxDate</a>, the value will be validated after <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.html">GcDateTime</a> lost keyboard focus.
      </p>
<p>
      Set <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MinDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MinDate">MinDate</a> greater than <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate">MaxDate</a>, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate">MaxDate</a> will change to same as <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MinDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MinDate">MinDate</a>; 
      Set <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate">MaxDate</a> less than <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MinDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MinDate">MinDate</a>, the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MinDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MinDate">MinDate</a> won't change and the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MaxDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MaxDate">MaxDate</a> changes to same as <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.MinDate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_MinDate">MinDate</a>.
      </p>
</div>
</div>
