RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.TimeOf Function

Strips the date portion from a TDateTime value.

Pascal
function TimeOf(const AValue: TDateTime): TDateTime;
C++
TDateTime TimeOf(const TDateTime AValue);

Call TimeOf to convert a TDateTime value to a TDateTime value that includes only the time information (sets the date portion to 0, which means 12/30/1899). 

 

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