# FarPoint.Web.Spread.DateTimeCellType

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_DateTimeCellType" data-uid="FarPoint.Web.Spread.DateTimeCellType" class="text-break">DateTimeCellType Class
</h1>
  <div class="markdown level0 summary"><p>Represents a date-time cell.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="FarPoint.Web.Spread.BaseCellType.html">BaseCellType</a></div>
    <div class="level2"><a class="xref" href="FarPoint.Web.Spread.GeneralCellType.html">GeneralCellType</a></div>
    <div class="level3"><a class="xref" href="FarPoint.Web.Spread.BaseDropDownCellType.html">BaseDropDownCellType</a></div>
    <div class="level4"><span class="xref">DateTimeCellType</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IEnhancedRenderer.html">IEnhancedRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IEnhancedPdfRenderer.html">IEnhancedPdfRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IPdfSupport.html">IPdfSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Editor.IEditor3.html">IEditor3</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ISerializeSupport2.html">ISerializeSupport2</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.IParseFormatSupport.html">IParseFormatSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.ICSSClassSupport.html">ICSSClassSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Editor.IEditFormatter.html">IEditFormatter</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IEditorCSSClassSupport.html">IEditorCSSClassSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IDateCellType.html">IDateCellType</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.ICellType.html">ICellType</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Editor.IEditor.html">IEditor</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IWrapableRenderer.html">IWrapableRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer.html">IRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.IAcceptServerValidator.html">IAcceptServerValidator</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Model.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IEnhancedFormatter.html">IEnhancedFormatter</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IFormatter.html">IFormatter</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Spread.html">FarPoint.Web.Spread</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Spread.dll</h6>
  <h5 id="FarPoint_Web_Spread_DateTimeCellType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DateTimeCellType : BaseDropDownCellType, ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, ISerializeSupport2, IParseFormatSupport, ICSSClassSupport, IEditFormatter, IEditorCSSClassSupport, IDateCellType, ICellType, IEditor, IWrapableRenderer, IRenderer, IAcceptServerValidator, ISerializeSupport, IEnhancedFormatter, IFormatter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DateTimeCellType
    Inherits BaseDropDownCellType
    Implements ICloneable, IEnhancedRenderer, IEnhancedPdfRenderer, IPdfSupport, IEditor3, ISerializeSupport2, IParseFormatSupport, ICSSClassSupport, IEditFormatter, IEditorCSSClassSupport, IDateCellType, ICellType, IEditor, IWrapableRenderer, IRenderer, IAcceptServerValidator, ISerializeSupport, IEnhancedFormatter, IFormatter</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType__ctor" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.-ctor.html#FarPoint_Web_Spread_DateTimeCellType__ctor">DateTimeCellType()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new date-time cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType__ctor_System_DateTime_System_DateTime_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor(System.DateTime,System.DateTime)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.-ctor.html#FarPoint_Web_Spread_DateTimeCellType__ctor_System_DateTime_System_DateTime_">DateTimeCellType(DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new date-time cell with the specified earliest and latest allowable dates and times.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.-ctor.html#FarPoint_Web_Spread_DateTimeCellType__ctor_System_DateTime_System_DateTime_System_String_">DateTimeCellType(DateTime, DateTime, string)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType__ctor_System_String_" data-uid="FarPoint.Web.Spread.DateTimeCellType.#ctor(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.-ctor.html#FarPoint_Web_Spread_DateTimeCellType__ctor_System_String_">DateTimeCellType(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new date-time cell with the specified error message.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_AllowWrap" data-uid="FarPoint.Web.Spread.DateTimeCellType.AllowWrap">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.AllowWrap.html#FarPoint_Web_Spread_DateTimeCellType_AllowWrap">AllowWrap</a>
        </td>
        <td class="markdown level1 summary"><p>Overridden to always return false.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_DateTimeFormat" data-uid="FarPoint.Web.Spread.DateTimeCellType.DateTimeFormat">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.DateTimeFormat.html#FarPoint_Web_Spread_DateTimeCellType_DateTimeFormat">DateTimeFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a DateTimeFormatInfo that defines the format for displaying dates and times.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_DropDownControlStyleInfo" data-uid="FarPoint.Web.Spread.DateTimeCellType.DropDownControlStyleInfo">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.DropDownControlStyleInfo.html#FarPoint_Web_Spread_DateTimeCellType_DropDownControlStyleInfo">DropDownControlStyleInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets style information for CalendarDropDownControl instances.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_EditMode" data-uid="FarPoint.Web.Spread.DateTimeCellType.EditMode">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.EditMode.html#FarPoint_Web_Spread_DateTimeCellType_EditMode">EditMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the format setting of a cell type in edit mode.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_ErrorMessage" data-uid="FarPoint.Web.Spread.DateTimeCellType.ErrorMessage">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.ErrorMessage.html#FarPoint_Web_Spread_DateTimeCellType_ErrorMessage">ErrorMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the error message for the cell type.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_FormatString" data-uid="FarPoint.Web.Spread.DateTimeCellType.FormatString">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.FormatString.html#FarPoint_Web_Spread_DateTimeCellType_FormatString">FormatString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format string used to format the date value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_MaximumValue" data-uid="FarPoint.Web.Spread.DateTimeCellType.MaximumValue">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.MaximumValue.html#FarPoint_Web_Spread_DateTimeCellType_MaximumValue">MaximumValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_MinimumValue" data-uid="FarPoint.Web.Spread.DateTimeCellType.MinimumValue">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.MinimumValue.html#FarPoint_Web_Spread_DateTimeCellType_MinimumValue">MinimumValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_Multiline" data-uid="FarPoint.Web.Spread.DateTimeCellType.Multiline">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.Multiline.html#FarPoint_Web_Spread_DateTimeCellType_Multiline">Multiline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell allows multiple lines; overridden to always return false.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_ShowPopupButton" data-uid="FarPoint.Web.Spread.DateTimeCellType.ShowPopupButton">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.ShowPopupButton.html#FarPoint_Web_Spread_DateTimeCellType_ShowPopupButton">ShowPopupButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the editor supports showing a pop-up control.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Web.Spread.DateTimeCellType.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.Deserialize.html#FarPoint_Web_Spread_DateTimeCellType_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the cell type from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_Format_System_Object_" data-uid="FarPoint.Web.Spread.DateTimeCellType.Format(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.Format.html#FarPoint_Web_Spread_DateTimeCellType_Format_System_Object_">Format(object)</a>
        </td>
        <td class="markdown level1 summary"><p>When deriving a cell type based on this type, override this<br>
to change what gets passed back and formatted as a string
into the cell on the sheet from the object in the data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_Format_System_Object_System_String_System_IFormatProvider_" data-uid="FarPoint.Web.Spread.DateTimeCellType.Format(System.Object,System.String,System.IFormatProvider)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.Format.html#FarPoint_Web_Spread_DateTimeCellType_Format_System_Object_System_String_System_IFormatProvider_">Format(object, string, IFormatProvider)</a>
        </td>
        <td class="markdown level1 summary"><p>When deriving a cell type based on this type, override this<br>
to change what gets passed back and formatted as a string
into the cell on the sheet from the object in the data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_GetDropDownButton_FarPoint_Web_Spread_FpSpread_" data-uid="FarPoint.Web.Spread.DateTimeCellType.GetDropDownButton(FarPoint.Web.Spread.FpSpread)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.GetDropDownButton.html#FarPoint_Web_Spread_DateTimeCellType_GetDropDownButton_FarPoint_Web_Spread_FpSpread_">GetDropDownButton(FpSpread)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the drop-down button.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_GetDropDownControl_FarPoint_Web_Spread_FpSpread_" data-uid="FarPoint.Web.Spread.DateTimeCellType.GetDropDownControl(FarPoint.Web.Spread.FpSpread)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.GetDropDownControl.html#FarPoint_Web_Spread_DateTimeCellType_GetDropDownControl_FarPoint_Web_Spread_FpSpread_">GetDropDownControl(FpSpread)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a new CalendarDropDownControl instance that is a DropDown control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_GetEditorControl_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.DateTimeCellType.GetEditorControl(System.String,System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,FarPoint.Web.Spread.Inset,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.GetEditorControl.html#FarPoint_Web_Spread_DateTimeCellType_GetEditorControl_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">GetEditorControl(string, TableCell, Appearance, Inset, object, bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.DateTimeCellType.PaintCell(System.String,System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,FarPoint.Web.Spread.Inset,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.PaintCell.html#FarPoint_Web_Spread_DateTimeCellType_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">PaintCell(string, TableCell, Appearance, Inset, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a control and renders it in the cell based on the specified appearance, margin, and value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_Parse_System_String_" data-uid="FarPoint.Web.Spread.DateTimeCellType.Parse(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.Parse.html#FarPoint_Web_Spread_DateTimeCellType_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>When deriving a cell type based on this type, override this<br>
to change what gets parsed from the cell on the sheet and put in the data model.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Web.Spread.DateTimeCellType.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.Serialize.html#FarPoint_Web_Spread_DateTimeCellType_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the cell type to XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_DateTimeCellType_ValidateEditorValue_System_Object_" data-uid="FarPoint.Web.Spread.DateTimeCellType.ValidateEditorValue(System.Object)">
          <a class="xref" href="FarPoint.Web.Spread.DateTimeCellType.ValidateEditorValue.html#FarPoint_Web_Spread_DateTimeCellType_ValidateEditorValue_System_Object_">ValidateEditorValue(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the input value.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
