System::Globalization::Calendar::GetMonthsInYear method

Calendar::GetMonthsInYear(int) const method

Gets number of months in the specified year.

virtual int System::Globalization::Calendar::GetMonthsInYear(int year) const
ParameterTypeDescription
yearintYear to get number of months in.

ReturnValue

Number of months in the specified year.

See Also

Calendar::GetMonthsInYear(int, int) const method

Gets number of months in the specified year.

virtual int System::Globalization::Calendar::GetMonthsInYear(int year, int era) const
ParameterTypeDescription
yearintYear to get number of months in.
eraintEra.

ReturnValue

Number of months in the specified year of specified era.

See Also