GetDaysInMonth()

Calendar::GetDaysInMonth(int, int) const method

Gets number of days in specific month.

virtual int System::Globalization::Calendar::GetDaysInMonth(int year, int month) const

Arguments

ParameterTypeDescription
yearintYear.
monthintMonth to get number of days in.

Return Value

Number of days in specified month of specified year.

Calendar::GetDaysInMonth(int, int, int) const method

Gets number of days in specific month.

virtual int System::Globalization::Calendar::GetDaysInMonth(int year, int month, int era) const

Arguments

ParameterTypeDescription
yearintYear.
monthintMonth to get number of days in.
eraintEra.

Return Value

Number of days in specified month of specified year of specified era.

See Also