Table of Contents

TTMSFNCDataGridData.ValueToDateTime Method

Safely converts a raw cell value to TDateTime using default format settings.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Safely converts a raw cell value to TDateTime using default format settings.

class function ValueToDateTime(AValue: TTMSFNCDataGridCellValue): TDateTime; overload;

Parameters

Name Description
AValue Cell value to test or convert.

Returns

The value converted to a date/time value.

Overload 2

Safely converts a raw cell value to TDateTime respecting locale-specific date/time parsing.

class function ValueToDateTime(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): TDateTime; overload;

Parameters

Name Description
AValue Cell value to test or convert.
AFormatSettings Format settings used for locale-sensitive parsing or formatting.

Returns

The value converted to a date/time value.