# C1.Web.Mvc.InputDateBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_InputDateBase" data-uid="C1.Web.Mvc.InputDateBase" class="text-break">InputDateBase Class
</h1>
  <div class="markdown level0 summary"><p>The base class for the controls which allow the users to type in dates.</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"><span class="xref">InputDateBase</span></div>
      <div class="level7"><a class="xref" href="C1.Web.Mvc.InputDate.html">InputDate</a></div>
      <div class="level7"><a class="xref" href="C1.Web.Mvc.InputDateRange.html">InputDateRange</a></div>
      <div class="level7"><a class="xref" href="C1.Web.Mvc.InputDateTime.html">InputDateTime</a></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_InputDateBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class InputDateBase : DropDown, IHtmlContent, ITemplate, IDropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class InputDateBase
    Inherits DropDown
    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_InputDateBase__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_" data-uid="C1.Web.Mvc.InputDateBase.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.-ctor.html#C1_Web_Mvc_InputDateBase__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_">InputDateBase(IHtmlHelper, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.InputDateBase.html">InputDateBase</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_InputDateBase_AlwaysShowCalendar" data-uid="C1.Web.Mvc.InputDateBase.AlwaysShowCalendar">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.AlwaysShowCalendar.html#C1_Web_Mvc_InputDateBase_AlwaysShowCalendar">AlwaysShowCalendar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the calendar should remain visible in the dropdown even when there are selected predefined ranges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_CloseOnSelection" data-uid="C1.Web.Mvc.InputDateBase.CloseOnSelection">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.CloseOnSelection.html#C1_Web_Mvc_InputDateBase_CloseOnSelection">CloseOnSelection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the control should automatically close the drop-down when the user makes a selection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_Format" data-uid="C1.Web.Mvc.InputDateBase.Format">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.Format.html#C1_Web_Mvc_InputDateBase_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format used to display the selected date.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_HandleWheel" data-uid="C1.Web.Mvc.InputDateBase.HandleWheel">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.HandleWheel.html#C1_Web_Mvc_InputDateBase_HandleWheel">HandleWheel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the user can edit the current value using the mouse wheel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_InputType" data-uid="C1.Web.Mvc.InputDateBase.InputType">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.InputType.html#C1_Web_Mvc_InputDateBase_InputType">InputType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the &quot;type&quot; attribute of the HTML input element hosted by the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_IsRequired" data-uid="C1.Web.Mvc.InputDateBase.IsRequired">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.IsRequired.html#C1_Web_Mvc_InputDateBase_IsRequired">IsRequired</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the control value must be a Date or whether it can be set to null (by deleting the content of the control).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_ItemFormatter" data-uid="C1.Web.Mvc.InputDateBase.ItemFormatter">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.ItemFormatter.html#C1_Web_Mvc_InputDateBase_ItemFormatter">ItemFormatter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a formatter function to customize dates in the drop-down calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_ItemValidator" data-uid="C1.Web.Mvc.InputDateBase.ItemValidator">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.ItemValidator.html#C1_Web_Mvc_InputDateBase_ItemValidator">ItemValidator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of a validator javascript function to determine whether dates are valid for selection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_KeyActionDownArrow" data-uid="C1.Web.Mvc.InputDateBase.KeyActionDownArrow">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.KeyActionDownArrow.html#C1_Web_Mvc_InputDateBase_KeyActionDownArrow">KeyActionDownArrow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the action to perform when the DOWN ARROW key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_KeyActionTab" data-uid="C1.Web.Mvc.InputDateBase.KeyActionTab">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.KeyActionTab.html#C1_Web_Mvc_InputDateBase_KeyActionTab">KeyActionTab</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the action to perform when the TAB key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_KeyActionUpArrow" data-uid="C1.Web.Mvc.InputDateBase.KeyActionUpArrow">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.KeyActionUpArrow.html#C1_Web_Mvc_InputDateBase_KeyActionUpArrow">KeyActionUpArrow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the action to perform when the UP ARROW key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_Mask" data-uid="C1.Web.Mvc.InputDateBase.Mask">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.Mask.html#C1_Web_Mvc_InputDateBase_Mask">Mask</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a mask to use while editing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_Max" data-uid="C1.Web.Mvc.InputDateBase.Max">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.Max.html#C1_Web_Mvc_InputDateBase_Max">Max</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the latest date that the user can enter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_Min" data-uid="C1.Web.Mvc.InputDateBase.Min">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.Min.html#C1_Web_Mvc_InputDateBase_Min">Min</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the earliest date that the user can enter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_MonthCount" data-uid="C1.Web.Mvc.InputDateBase.MonthCount">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.MonthCount.html#C1_Web_Mvc_InputDateBase_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_InputDateBase_OnClientInvalidInput" data-uid="C1.Web.Mvc.InputDateBase.OnClientInvalidInput">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.OnClientInvalidInput.html#C1_Web_Mvc_InputDateBase_OnClientInvalidInput">OnClientInvalidInput</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when invalid input is detected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_OnClientRangeChanged" data-uid="C1.Web.Mvc.InputDateBase.OnClientRangeChanged">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.OnClientRangeChanged.html#C1_Web_Mvc_InputDateBase_OnClientRangeChanged">OnClientRangeChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the rangeEnd property changes into a non-null value, indicating a data range has been selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_OnClientRangeEndChanged" data-uid="C1.Web.Mvc.InputDateBase.OnClientRangeEndChanged">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.OnClientRangeEndChanged.html#C1_Web_Mvc_InputDateBase_OnClientRangeEndChanged">OnClientRangeEndChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the RangeEnd property changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_OnClientValueChanged" data-uid="C1.Web.Mvc.InputDateBase.OnClientValueChanged">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.OnClientValueChanged.html#C1_Web_Mvc_InputDateBase_OnClientValueChanged">OnClientValueChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after a new date is selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_PredefinedRanges" data-uid="C1.Web.Mvc.InputDateBase.PredefinedRanges">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.PredefinedRanges.html#C1_Web_Mvc_InputDateBase_PredefinedRanges">PredefinedRanges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a function that return the predefined ranges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_PreserveCalendarNavigation" data-uid="C1.Web.Mvc.InputDateBase.PreserveCalendarNavigation">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.PreserveCalendarNavigation.html#C1_Web_Mvc_InputDateBase_PreserveCalendarNavigation">PreserveCalendarNavigation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether to preserve the month when user navigates to a different month than the selected date.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_RangeEnd" data-uid="C1.Web.Mvc.InputDateBase.RangeEnd">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.RangeEnd.html#C1_Web_Mvc_InputDateBase_RangeEnd">RangeEnd</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the last selected date in a range selection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_RangeMax" data-uid="C1.Web.Mvc.InputDateBase.RangeMax">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.RangeMax.html#C1_Web_Mvc_InputDateBase_RangeMax">RangeMax</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum length allowed when editing date ranges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_RangeMin" data-uid="C1.Web.Mvc.InputDateBase.RangeMin">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.RangeMin.html#C1_Web_Mvc_InputDateBase_RangeMin">RangeMin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum number of days allowed when editing date ranges.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_RepeatButtons" data-uid="C1.Web.Mvc.InputDateBase.RepeatButtons">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.RepeatButtons.html#C1_Web_Mvc_InputDateBase_RepeatButtons">RepeatButtons</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the calendar buttons should act as repeat buttons, firing repeatedly as the button remains pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_SelectionMode" data-uid="C1.Web.Mvc.InputDateBase.SelectionMode">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.SelectionMode.html#C1_Web_Mvc_InputDateBase_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>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_ShowConfirmationButtons" data-uid="C1.Web.Mvc.InputDateBase.ShowConfirmationButtons">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.ShowConfirmationButtons.html#C1_Web_Mvc_InputDateBase_ShowConfirmationButtons">ShowConfirmationButtons</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to display the confirmation buttons in Calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_ShowMonthPicker" data-uid="C1.Web.Mvc.InputDateBase.ShowMonthPicker">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.ShowMonthPicker.html#C1_Web_Mvc_InputDateBase_ShowMonthPicker">ShowMonthPicker</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the calendar should display a list of months when the user clicks the header element on the month calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_ShowYearPicker" data-uid="C1.Web.Mvc.InputDateBase.ShowYearPicker">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.ShowYearPicker.html#C1_Web_Mvc_InputDateBase_ShowYearPicker">ShowYearPicker</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the calendar should display a list of years when the user clicks the header element on the year calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_Value" data-uid="C1.Web.Mvc.InputDateBase.Value">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.Value.html#C1_Web_Mvc_InputDateBase_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current date.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_WeeksAfter" data-uid="C1.Web.Mvc.InputDateBase.WeeksAfter">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.WeeksAfter.html#C1_Web_Mvc_InputDateBase_WeeksAfter">WeeksAfter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of weeks to show on the calendar after the current month.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputDateBase_WeeksBefore" data-uid="C1.Web.Mvc.InputDateBase.WeeksBefore">
          <a class="xref" href="C1.Web.Mvc.InputDateBase.WeeksBefore.html#C1_Web_Mvc_InputDateBase_WeeksBefore">WeeksBefore</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of weeks to show on the calendar before the current month.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
