[Overview][Constants][Procedures and functions] |
Return the number of days in the month in which a date occurs.
Source position: dateutil.inc line 99
function DaysInMonth( |
const AValue: TDateTime |
):Word; |
AValue |
|
Date in month of which to calculate the number of days. |
Number of days in the month in which AValueoccurs.
DaysInMonthreturns the number of days in the month in which AValuefalls. The return value takes leap years into account.
|
Return the number of weeks in a given year |
|
|
return the number of weeks in the year, given a date |
|
|
Return the number of days in the year in which a date occurs. |
|
|
Number of days in a particular year. |
|
|
Number of days in a month of a certain year. |
Program Example16; { This program demonstrates the DaysInMonth function } Uses SysUtils,DateUtils; Var Y,M : Word; Begin For Y:=1992 to 2010 do For M:=1 to 12 do Writeln(LongMonthNames[m],' ',Y,' has ',DaysInMonth(EncodeDate(Y,M,1)),' days.'); End.