DaysInMonth()

DateTime::DaysInMonth(int, int) method

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

static int System::DateTime::DaysInMonth(int year, int month)

Arguments

ParameterTypeDescription
yearintThe year
monthintThe ordinal number of the month

Return Value

The number of days is the specified month of the specified year

See Also