# C1.Web.Mvc.InputDateRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_InputDateRange" data-uid="C1.Web.Mvc.InputDateRange" class="text-break">InputDateRange Class
</h1>
  <div class="markdown level0 summary"><p>The control extends the InputDate control which sets SelectionMode to Range, MonthCount to 2 and ShowMonthPicker to OutSide.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Control.html">Control</a></div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.InputBase.html">InputBase</a></div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.FormInputBase.html">FormInputBase</a></div>
    <div class="level5"><a class="xref" href="C1.Web.Mvc.DropDown.html">DropDown</a></div>
    <div class="level6"><a class="xref" href="C1.Web.Mvc.InputDateBase.html">InputDateBase</a></div>
    <div class="level7"><span class="xref">InputDateRange</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
    <div><a class="xref" href="C1.Web.Mvc.ITemplate.html">ITemplate</a></div>
    <div><a class="xref" href="C1.Web.Mvc.IDropDown.html">IDropDown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_InputDateRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class InputDateRange : InputDateBase, IHtmlContent, ITemplate, IDropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class InputDateRange
    Inherits InputDateBase
    Implements IHtmlContent, ITemplate, IDropDown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_InputDateRange__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_" data-uid="C1.Web.Mvc.InputDateRange.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.InputDateRange.-ctor.html#C1_Web_Mvc_InputDateRange__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_">InputDateRange(IHtmlHelper, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.InputDateRange.html">InputDateRange</a> instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_InputDateRange_MonthCount" data-uid="C1.Web.Mvc.InputDateRange.MonthCount">
          <a class="xref" href="C1.Web.Mvc.InputDateRange.MonthCount.html#C1_Web_Mvc_InputDateRange_MonthCount">MonthCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of months to display in the drop-down calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateRange_SelectionMode" data-uid="C1.Web.Mvc.InputDateRange.SelectionMode">
          <a class="xref" href="C1.Web.Mvc.InputDateRange.SelectionMode.html#C1_Web_Mvc_InputDateRange_SelectionMode">SelectionMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether users can select days, months, or no values at all.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
