# C1.Globalization.JapaneseCalendarEx.AddJapaneseEra

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Globalization_JapaneseCalendarEx_AddJapaneseEra_" data-uid="C1.Globalization.JapaneseCalendarEx.AddJapaneseEra*">AddJapaneseEra Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Globalization_JapaneseCalendarEx_AddJapaneseEra_" data-uid="C1.Globalization.JapaneseCalendarEx.AddJapaneseEra*"></a>
<h4 id="C1_Globalization_JapaneseCalendarEx_AddJapaneseEra_System_Int32_System_DateTime_System_DateTime_System_String_System_String_System_String_System_String_" data-uid="C1.Globalization.JapaneseCalendarEx.AddJapaneseEra(System.Int32,System.DateTime,System.DateTime,System.String,System.String,System.String,System.String)">AddJapaneseEra(int, DateTime, DateTime, string, string, string, string)</h4>
<div class="markdown level1 summary"><p>Adds a Japanese era in the calendar.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddJapaneseEra(int era, DateTime startTime, DateTime endTime, string eraName, string abbreviatedEraName, string englishEraName, string symbolEraName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddJapaneseEra(era As Integer, startTime As Date, endTime As Date, eraName As String, abbreviatedEraName As String, englishEraName As String, symbolEraName As String)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">era</span></td>
      <td><p>Index of the era</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">startTime</span></td>
      <td><p>Era start date</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">endTime</span></td>
      <td><p>Era end date</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">eraName</span></td>
      <td><p>Japanese era name</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">abbreviatedEraName</span></td>
      <td><p>Abbreviated Japanese era name</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">englishEraName</span></td>
      <td><p>English era name</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">symbolEraName</span></td>
      <td><p>Symbolic era name</p>
</td>
    </tr>
  </tbody>
</table>
</div>
