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);

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). 

 

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