Returns a TDateTime that represents the last millisecond of the last day of the year identified by a specified TDateTime.
function EndOfTheYear(const AValue: TDateTime): TDateTime;
TDateTime EndOfTheYear(const TDateTime AValue);
DateUtils
EndOfTheYear returns the last expressible moment of the same year as the TDateTime specified by AValue. That is, it replaces the time portion of AValue with 11:59:59.999 PM, changes the day to December 31, and returns the result.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|