RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.EndOfTheDay Function

Returns a TDateTime that represents the last millisecond of the day identified by a specified TDateTime.

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

DateUtils

EndOfTheDay returns the last expressible moment of the same day as the TDateTime specified by AValue. That is, it replaces the time portion of AValue with 11:59:59.999 PM and returns the result. 

 

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