# GrapeCity.Win.Spread.InputMan.CellType.ForceHoliday.TypeOfDay

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_ForceHoliday_TypeOfDay_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ForceHoliday.TypeOfDay*">TypeOfDay Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_ForceHoliday_TypeOfDay_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ForceHoliday.TypeOfDay*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_ForceHoliday_TypeOfDay_System_DateTime_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ForceHoliday.TypeOfDay(System.DateTime)">TypeOfDay(DateTime)</h4>
<div class="markdown level1 summary"><p>Returns the type of day for the specified date.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override DayType TypeOfDay(DateTime date)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function TypeOfDay([date] As Date) As DayType</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="GrapeCity.Win.Spread.InputMan.CellType.DayType.html">DayType</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DayType.html">DayType</a> enumeration that represents the
type of day.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.HolidayBase.TypeOfDay.html#GrapeCity_Win_Spread_InputMan_CellType_HolidayBase_TypeOfDay_System_DateTime_">HolidayBase.TypeOfDay(DateTime)</a></div>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_ForceHoliday_TypeOfDay_System_DateTime__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method returns a <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DayType.html#GrapeCity_Win_Spread_InputMan_CellType_DayType_ForcedWorkday">ForcedWorkday</a> if the
date is a holiday; otherwise, a <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DayType.html#GrapeCity_Win_Spread_InputMan_CellType_DayType_Normal">Normal</a>
is returned.</p>
</div>
</div>
