Back to Devexpress

DaysPerMonth(Integer,Integer) Method

vcl-cxdateutils-dot-dayspermonth-x28-6a0f6ceb-x29.md

latest757 B
Original Source

DaysPerMonth(Integer,Integer) Method

Returns the number of days in a month.

Declaration

delphi
function DaysPerMonth(AYear: Integer; AMonth: Integer): Integer;

Parameters

NameType
AYearInteger
AMonthInteger

Returns

Type
Integer

Remarks

Use the DaysPerMonth function to determine the number of days in a specific month of a specific year. The AYear and AMonth parameters specify the year and month respectively.

See Also

cxDateUtils Unit