# GrapeCity.Spreadsheet.DateGroupItem.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_DateGroupItem__ctor_" data-uid="GrapeCity.Spreadsheet.DateGroupItem.#ctor*">DateGroupItem Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_DateGroupItem__ctor_" data-uid="GrapeCity.Spreadsheet.DateGroupItem.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_DateGroupItem__ctor_GrapeCity_Spreadsheet_DateTimeGrouping_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.DateGroupItem.#ctor(GrapeCity.Spreadsheet.DateTimeGrouping,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">DateGroupItem(DateTimeGrouping, int, int, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.DateGroupItem.html">DateGroupItem</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateGroupItem(DateTimeGrouping groupingBy, int year, int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(groupingBy As DateTimeGrouping, year As Integer, Optional month As Integer = 1, Optional day As Integer = 1, Optional hour As Integer = 0, Optional minute As Integer = 0, Optional second As Integer = 0)</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="GrapeCity.Spreadsheet.DateTimeGrouping.html">DateTimeGrouping</a></td>
      <td><span class="parametername">groupingBy</span></td>
      <td><p>The grouping by.</p>
</td>
    </tr>
    <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 value indicates the filtering 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 value indicates the filtering.</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 value indicates the filtering 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 value indicates the filtering 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 value indicates the filtering 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 value indicates the filtering second.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
