Data.DB.TField.AsDateTime
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TField |
Delphi
property AsDateTime: TDateTime read GetAsDateTime write SetAsDateTime;
C++
__property System::TDateTime AsDateTime = {read=GetAsDateTime, write=SetAsDateTime};
Description
Represents the value of the field as a TDateTime value.
Use AsDateTime to read the value of the field's data into an object or variable of type TDateTime, or to assign a TDateTime value to the contents of the field. TField does not support TDateTime values, and raises an exception when an attempt is made to get or set the AsDateTime property.
Descendants of TField that represent datetime (timestamp) fields or that support conversions between the Value property of the field and a TDateTime value, override AsDateTime to read and write the value of the field as a TDateTime value.