RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.EndOfAMonth Function

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

Pascal
function EndOfAMonth(const AYear: Word; const AMonth: Word): TDateTime;
C++
TDateTime EndOfAMonth(const Word AYear, const Word AMonth);

DateUtils

EndOfAMonth returns the last expressible moment (11:59:59.999 PM) of the last day of a specified month. 

The AYear parameter specifies the year of the desired month. 

The AMonth parameter specifies the month. It can range from 1 to 12. 

If the parameters do not specify a valid month, EndOfAMonth raises an EConvertError exception. 

 

EndOfTheMonth 

EndOfADay 

EndOfAYear 

EndOfAWeek 

ReplaceTime 

StartOfAMonth 

EncodeDate

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