# FarPoint.Web.Spread.DateTimeCellType.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_DateTimeCellType__ctor_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor*">DateTimeCellType Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_DateTimeCellType__ctor_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_DateTimeCellType__ctor" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor">DateTimeCellType()</h4>
<div class="markdown level1 summary"><p>Creates a new date-time cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTimeCellType()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_DateTimeCellType__ctor_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_DateTimeCellType__ctor_System_String_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor(System.String)">DateTimeCellType(string)</h4>
<div class="markdown level1 summary"><p>Creates a new date-time cell with the specified error message.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTimeCellType(string errorMessage)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(errorMessage As String)</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.string">string</a></td>
      <td><span class="parametername">errorMessage</span></td>
      <td><p>Message (as string) to display if the input value is not valid</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_DateTimeCellType__ctor_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_DateTimeCellType__ctor_System_DateTime_System_DateTime_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor(System.DateTime,System.DateTime)">DateTimeCellType(DateTime, DateTime)</h4>
<div class="markdown level1 summary"><p>Creates a new date-time cell with the specified earliest and latest allowable dates and times.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTimeCellType(DateTime min, DateTime max)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(min As Date, max As Date)</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">min</span></td>
      <td><p>Minimum value (earliest date and time)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">max</span></td>
      <td><p>Maximum value (latest date and time)</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_DateTimeCellType__ctor_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_DateTimeCellType__ctor_System_DateTime_System_DateTime_System_String_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor(System.DateTime,System.DateTime,System.String)">DateTimeCellType(DateTime, DateTime, string)</h4>
<div class="markdown level1 summary"><p>Creates a new date-time cell with the specified earliest and latest allowable dates and
the specified error message.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTimeCellType(DateTime min, DateTime max, string errorMessage)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(min As Date, max As Date, errorMessage As String)</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">min</span></td>
      <td><p>Minimum value (earliest date and time)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">max</span></td>
      <td><p>Maximum value (latest date and time)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">errorMessage</span></td>
      <td><p>Message (as string) to display if the input value is not valid</p>
</td>
    </tr>
  </tbody>
</table>
</div>
