|Visual Basic (Declaration)|
Public Class DateTimeCellType Inherits EditBaseCellType Implements ISerializeSupport, IAutoCompleteSupport, ICellType, IDateTimeCellType, IEditFormula, IEditor, IFormatter, INotifyEditorValueChanged, IPdfSupport, IPropertyAllowedSupport, IReadOnlySupport, IRenderAlignment, IRenderer, IReuseEditorControl, IReuseEditorControl2, IStaticSupport, IWordWrapSupport, IFormulaEditingSupport
|Visual Basic (Usage)||Copy Code|
This can be used to display Date or Time or both. In MS Excel, Date and Time formats are separate, but in Spread, the DateTimeCellType can be used to handle both dates and times.
By default, settings from the Windows Regional Settings or Regional Options provide the culture-specific formatting. You can set several format options for date and time using the properties in this class.
For more information about setting the cell type, refer to Setting a Date-Time Cell.
For more information about the behavior of contents in a cell of this type, refer to Understanding Cell Type Effects on Displaying Data.