Back to Devexpress

Cell.IsDisplayedAsDateTime Property

officefileapi-devexpress-dot-spreadsheet-dot-cell-f0986b91.md

latest2.6 KB
Original Source

Cell.IsDisplayedAsDateTime Property

Indicates whether a numeric value contained in the cell is displayed as a date and time value.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool IsDisplayedAsDateTime { get; }
vb
ReadOnly Property IsDisplayedAsDateTime As Boolean

Property Value

TypeDescription
Boolean

true , if a date and time format is applied to the cell; otherwise, false.

|

Remarks

A date and time format is automatically applied to a cell in the following cases.

To apply a date and time format to a cell explicitly, assign the corresponding format code to the Formatting.NumberFormat property of the cell object. For details, see the How to: Specify Number or Date Format for Cell Content example.

See Also

Cell Data Types

Dates and Times in Cells

Cell Interface

Cell Members

DevExpress.Spreadsheet Namespace