RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.DaysInAMonth Function

Returns the number of days in a specified month of a specified year.

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

DateUtils

Call DaysInAMonth to obtain the number of days in the specified month of the specified year. 

AYear is a year between 1 and 9999 (inclusive). 

AMonth is a month between 1 and 12 (inclusive). 

 

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