# GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.IsHoliday

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_IsHoliday_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.IsHoliday*">IsHoliday Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_IsHoliday_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.IsHoliday*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_IsHoliday_System_DateTime_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.IsHoliday(System.DateTime)">IsHoliday(DateTime)</h4>
<div class="markdown level1 summary"><p>Determines whether the specified date is a holiday.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool IsHoliday(DateTime date)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function IsHoliday([date] As Date) As Boolean</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>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value that indicates the date.</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.boolean">bool</a></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the date is a holiday; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_IsHoliday_System_DateTime__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>A specified date that uses the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Holiday.html">Holiday</a> or
<a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.ForceHoliday.html">ForceHoliday</a> class is treated as a holiday.
Also, weekday's can be treated as holidays by using the
<a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DayOfWeekHolidayPolicy.html">DayOfWeekHolidayPolicy</a> structure.</p>
</div>
</div>
