API:Data.DB.TStringField.GetAsDateTime
Delphi
function GetAsDateTime: TDateTime; override;
C++
virtual System::TDateTime __fastcall GetAsDateTime();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.DB.pas Data.DB.hpp |
Data.DB | TStringField |
Description
Returns the value of the field as a TDateTime.
Data.DB.TStringField.GetAsDateTime inherits from Data.DB.TField.GetAsDateTime. All content below this line refers to Data.DB.TField.GetAsDateTime.
Returns the value of the field as a TDateTime.
Descendants of TField that represent TDateTime fields override the GetAsDateTime method to return the value of the field as a TDateTime.
Trying to call the GetAsDateTime method raises an exception.