Data.DB.TDateTimeField.Value

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Value: TDateTime read GetAsDateTime write SetAsDateTime;

C++

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

Properties

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

Description

Represents the value of the date in the date-time field.

Use Value to read data directly from and write data directly to a date-time field component at runtime. TDateTimeField components store and manipulate their data as TDateTime values. Thus, for date-time fields, the Value property is the same as the AsDateTime property.



var
DT: TDateTime;
begin
DT := Table1DateField.Value;
ShowMessage(DateTimeToStr(DT));
end;



See Also