TdxSpreadSheetCell.AsDateTime Property
Specifies the cell object’s date/time value.
Declaration
property AsDateTime: TDateTime read; write;
Property Value
Type |
---|
TDateTime |
Remarks
You can use this property to:
Assign a new TDateTime value to the cell object (the DataType property value changes to cdtDateTime as a result);
Read a TDateTime value stored in the cell object;
Interpret the cell object’s data as a TDateTime value, if possible.
The AsDateTime property returns 0 if it is impossible to interpret the stored cell data as a date/time value (that is, the cell object is empty or contains a string). Use the DataType property to identify the cell object’s actual value type.
See Also