RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.DateOf Function

Strips the time portion from a TDateTime value.

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

DateUtils

Call DateOf to convert a TDateTime value to a TDateTime value that includes only the date information (sets the time portion to 0, which means midnight). 

 

DecodeDate 

ReplaceTime 

TimeOf

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!