The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

CellValue.DateTimeValue Property

Returns the date and time value that corresponds to the number contained in a cell.

Namespace: DevExpress.Spreadsheet

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

Declaration

public DateTime DateTimeValue { get; }
Public ReadOnly Property DateTimeValue As Date
public DateTime DateTimeValue { get; }
Public ReadOnly Property DateTimeValue As Date
public DateTime DateTimeValue { get; }
Public ReadOnly Property DateTimeValue As Date

Property Value

Type Description
DateTime

A DateTime object.

Property Value

Type Description
DateTime

A DateTime object.

Property Value

Type Description
DateTime

A DateTime object.

Remarks

Dates and times are stored in cells as numbers that are displayed according to the applied date and time formats. So, if a cell contains a number, the DateTimeValue property returns the DateTime object which specifies a date and time value represented by that number. The number itself is accessed via the CellValue.NumericValue property. To check whether a cell displays its numeric value as date and time, use the CellValue.IsDateTime or CellValue.Type property. To get a string that specifies a cell value as it is displayed, use the Cell.DisplayText property.

For more information on cell values, refer to the Cell Data Types and Dates and Times in Cells documents.

See Also