RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXSCustomDateTime.AsDateTime Property

Represents the object's value as a TDateTime value.

Pascal
property AsDateTime: TDateTime;
C++
__property TDateTime AsDateTime;

Use AsDateTime to read the value of the TXSCustomDateTime object into a variable of type TDateTime or set its value from a TDateTime value. AsDateTime handles the mapping between a TDateTime value and the Year, Month, Day, Hour, Minute, and Second values.

Note: AsDateTime represents the local date-and-time, without using Coordinated Universal Time (UTC). That is, AsDateTime ignores the HourOffset and MinuteOffset properties. To get or set the value taking the HourOffset and MinuteOffset properties into account, use the AsUTCDateTime property instead.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!