# GrapeCity.ActiveReports.Rendering.RenderingTree.Tools.DateTimeExtension.GetQuarterName

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_RenderingTree_Tools_DateTimeExtension_GetQuarterName_" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.Tools.DateTimeExtension.GetQuarterName*">GetQuarterName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_RenderingTree_Tools_DateTimeExtension_GetQuarterName_" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.Tools.DateTimeExtension.GetQuarterName*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_RenderingTree_Tools_DateTimeExtension_GetQuarterName_System_DateTime_System_Globalization_CultureInfo_" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.Tools.DateTimeExtension.GetQuarterName(System.DateTime,System.Globalization.CultureInfo)">GetQuarterName(DateTime, CultureInfo)</h4>
<div class="markdown level1 summary"><p>Gets the name of the quarter for the specified date and culture.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string GetQuarterName(this DateTime date, CultureInfo culture = null)</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.datetime">DateTime</a></td>
      <td><span class="parametername">date</span></td>
      <td><p>The date for which to get the quarter name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a></td>
      <td><span class="parametername">culture</span></td>
      <td><p>The culture to use for the quarter name. If null, the quarter number is returned.</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.string">string</a></td>
      <td><p>The name of the quarter, or the quarter number as a string if the culture is not specified or not supported.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
