Show: Delphi C++
Display Preferences

Data.DB.TField.AsDateTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsDateTime: TDateTime read GetAsDateTime write SetAsDateTime;

C++

__property System::TDateTime AsDateTime = {read=GetAsDateTime, write=SetAsDateTime};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance