System::DateTime::DaysInMonth method

DateTime::DaysInMonth method

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

static int System::DateTime::DaysInMonth(int year, int month)
ParameterTypeDescription
yearintThe year
monthintThe ordinal number of the month

ReturnValue

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

See Also