# GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.ToDateTime

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Core_Rendering_JpCalendar_JapaneseCalendarEx_ToDateTime_" data-uid="GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.ToDateTime*">ToDateTime Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rendering_JpCalendar_JapaneseCalendarEx_ToDateTime_" data-uid="GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.ToDateTime*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rendering_JpCalendar_JapaneseCalendarEx_ToDateTime_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.ActiveReports.Core.Rendering.JpCalendar.JapaneseCalendarEx.ToDateTime(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">ToDateTime(int, int, int, int, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> that is set to the specified date and time in the specified era.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era)</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">year</span></td>
      <td><p>An integer that represents the year.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">month</span></td>
      <td><p>An integer from 1 to 12 that represents the month.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">day</span></td>
      <td><p>An integer from 1 to 31 that represents the day.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">hour</span></td>
      <td><p>An integer from 0 to 23 that represents the hour.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">minute</span></td>
      <td><p>An integer from 0 to 59 that represents the minute.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">second</span></td>
      <td><p>An integer from 0 to 59 that represents the second.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">millisecond</span></td>
      <td><p>An integer from 0 to 999 that represents the millisecond.</p>
</td>
    </tr>
    <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>An integer that represents the era.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> that is set to the specified date and time in the current era.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.calendar.todatetime#system-globalization-calendar-todatetime(system-int32-system-int32-system-int32-system-int32-system-int32-system-int32-system-int32-system-int32)">Calendar.ToDateTime(int, int, int, int, int, int, int, int)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>year is outside the range supported by the calendar.-or- month is outside the range supported by the calendar.
-or- day is outside the range supported by the calendar.-or- hour is less than zero or greater than 23.
-or- minute is less than zero or greater than 59.-or- second is less than zero or greater than 59.
-or- millisecond is less than zero or greater than 999.-or- era is outside the range supported by the calendar.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
