# C1.Globalization.CalendarEx

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Globalization_CalendarEx" data-uid="C1.Globalization.CalendarEx" class="text-break">CalendarEx Class
</h1>
  <div class="markdown level0 summary"><p>This class implement a calendar extend in order to we can configure era information.</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="https://learn.microsoft.com/dotnet/api/system.globalization.calendar">Calendar</a></div>
    <div class="level2"><span class="xref">CalendarEx</span></div>
      <div class="level3"><a class="xref" href="C1.Globalization.JapaneseCalendarEx.html">JapaneseCalendarEx</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Globalization.html">C1.Globalization</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Globalization_CalendarEx_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class CalendarEx : Calendar, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class CalendarEx
    Inherits Calendar
    Implements ICloneable</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_Globalization_CalendarEx__ctor" data-uid="C1.Globalization.CalendarEx.#ctor">
          <a class="xref" href="C1.Globalization.CalendarEx.-ctor.html#C1_Globalization_CalendarEx__ctor">CalendarEx()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <span class="xref">CalendarEx</span> class.</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_Globalization_CalendarEx_Eras" data-uid="C1.Globalization.CalendarEx.Eras">
          <a class="xref" href="C1.Globalization.CalendarEx.Eras.html#C1_Globalization_CalendarEx_Eras">Eras</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the list of eras in the <span class="xref">CalendarEx</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_ErasInfo" data-uid="C1.Globalization.CalendarEx.ErasInfo">
          <a class="xref" href="C1.Globalization.CalendarEx.ErasInfo.html#C1_Globalization_CalendarEx_ErasInfo">ErasInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the eras information of this calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_MaxSupportedDateTime" data-uid="C1.Globalization.CalendarEx.MaxSupportedDateTime">
          <a class="xref" href="C1.Globalization.CalendarEx.MaxSupportedDateTime.html#C1_Globalization_CalendarEx_MaxSupportedDateTime">MaxSupportedDateTime</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the latest date and time supported by the current <span class="xref">JapaneseCalendarEx</span> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_MinSupportedDateTime" data-uid="C1.Globalization.CalendarEx.MinSupportedDateTime">
          <a class="xref" href="C1.Globalization.CalendarEx.MinSupportedDateTime.html#C1_Globalization_CalendarEx_MinSupportedDateTime">MinSupportedDateTime</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the earliest date and time supported by the current <span class="xref">JapaneseCalendarEx</span> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Globalization_CalendarEx_ClearEras" data-uid="C1.Globalization.CalendarEx.ClearEras">
          <a class="xref" href="C1.Globalization.CalendarEx.ClearEras.html#C1_Globalization_CalendarEx_ClearEras">ClearEras()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all eras from the era list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMaxDay_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMaxDay(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMaxDay.html#C1_Globalization_CalendarEx_GetMaxDay_System_DateTime_">GetMaxDay(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the max day.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMaxEra" data-uid="C1.Globalization.CalendarEx.GetMaxEra">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMaxEra.html#C1_Globalization_CalendarEx_GetMaxEra">GetMaxEra()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the max era.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMaxEraYear_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMaxEraYear(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMaxEraYear.html#C1_Globalization_CalendarEx_GetMaxEraYear_System_DateTime_">GetMaxEraYear(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the max era year.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMaxEraYear_System_Int32_" data-uid="C1.Globalization.CalendarEx.GetMaxEraYear(System.Int32)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMaxEraYear.html#C1_Globalization_CalendarEx_GetMaxEraYear_System_Int32_">GetMaxEraYear(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the max era year.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMaxMonth_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMaxMonth(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMaxMonth.html#C1_Globalization_CalendarEx_GetMaxMonth_System_DateTime_">GetMaxMonth(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the max month.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMaxYear_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMaxYear(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMaxYear.html#C1_Globalization_CalendarEx_GetMaxYear_System_DateTime_">GetMaxYear(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the max year.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMinDay_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMinDay(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMinDay.html#C1_Globalization_CalendarEx_GetMinDay_System_DateTime_">GetMinDay(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the min day.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMinEra" data-uid="C1.Globalization.CalendarEx.GetMinEra">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMinEra.html#C1_Globalization_CalendarEx_GetMinEra">GetMinEra()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the min era.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMinEraYear_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMinEraYear(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMinEraYear.html#C1_Globalization_CalendarEx_GetMinEraYear_System_DateTime_">GetMinEraYear(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the min era year.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMinEraYear_System_Int32_" data-uid="C1.Globalization.CalendarEx.GetMinEraYear(System.Int32)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMinEraYear.html#C1_Globalization_CalendarEx_GetMinEraYear_System_Int32_">GetMinEraYear(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the min era year.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMinMonth_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMinMonth(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMinMonth.html#C1_Globalization_CalendarEx_GetMinMonth_System_DateTime_">GetMinMonth(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the min month.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_GetMinYear_System_DateTime_" data-uid="C1.Globalization.CalendarEx.GetMinYear(System.DateTime)">
          <a class="xref" href="C1.Globalization.CalendarEx.GetMinYear.html#C1_Globalization_CalendarEx_GetMinYear_System_DateTime_">GetMinYear(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the min year.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Globalization_CalendarEx_ToFourDigitYear_System_Int32_System_Int32_" data-uid="C1.Globalization.CalendarEx.ToFourDigitYear(System.Int32,System.Int32)">
          <a class="xref" href="C1.Globalization.CalendarEx.ToFourDigitYear.html#C1_Globalization_CalendarEx_ToFourDigitYear_System_Int32_System_Int32_">ToFourDigitYear(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the specified two-digit year to a four-digit year by using
the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.calendar.twodigityearmax">TwoDigitYearMax</a>
property to determine the appropriate century.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
