# C1.Win.C1Input.JapaneseEraHelper.AddJapaneseEra

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Input_JapaneseEraHelper_AddJapaneseEra_" data-uid="C1.Win.C1Input.JapaneseEraHelper.AddJapaneseEra*">AddJapaneseEra Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Input_JapaneseEraHelper_AddJapaneseEra_" data-uid="C1.Win.C1Input.JapaneseEraHelper.AddJapaneseEra*"></a>
<h4 id="C1_Win_C1Input_JapaneseEraHelper_AddJapaneseEra_System_Int32_System_DateTime_System_DateTime_System_String_System_String_System_String_System_String_" data-uid="C1.Win.C1Input.JapaneseEraHelper.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 era to the Japanese calendar.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Obsolete(&quot;Use C1.Globalization.JapaneseEraHelper.AddJapaneseEra().&quot;, false)]
public static 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">&lt;Obsolete(&quot;Use C1.Globalization.JapaneseEraHelper.AddJapaneseEra().&quot;, False)&gt;
Public Shared 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>Era numeric id.</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>Start day 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">endTime</span></td>
      <td><p>End day of the era.</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 name of the era.</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>Short Japanese name of the era.</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>Era name in English. Optional.</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>One Latin symbol era name.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
