Skip to main content
Table of Contents

TTMSFNCDataGridData.ValueIsDateTime Method

Returns True when the cell value is a stored date/time or text that parses as a date/time with the default format settings.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Returns True when the cell value is a stored date/time or text that parses as a date/time with the default format settings.

FMX.TMSFNCDataGridData.hppPascalC++
class function ValueIsDateTime(AValue: TTMSFNCDataGridCellValue): Boolean; overload;
__classmethod bool __fastcall ValueIsDateTime(const TTMSFNCDataGridCellValue &AValue)/* overload */;

Parameters

Name Description
AValue Cell value to test.

Returns

True when the value is or can be read as a date/time.

Overload 2

Returns True when the cell value is a stored date/time or text that parses as a date/time with the supplied format settings.

FMX.TMSFNCDataGridData.hppPascalC++
class function ValueIsDateTime(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Boolean; overload;
__classmethod bool __fastcall ValueIsDateTime(const TTMSFNCDataGridCellValue &AValue, const System::Sysutils::TFormatSettings &AFormatSettings)/* overload */;

Parameters

Name Description
AValue Cell value to test.
AFormatSettings Locale settings used to parse text values.

Returns

True when the value is or can be read as a date/time.