---
title: "System::Globalization::TaiwanCalendar::GetMonthsInYear method"
url: "https://reference.aspose.com/pub/cpp/system.globalization/taiwancalendar/getmonthsinyear/"
product: "Aspose.PUB for C++"
description: "System::Globalization::TaiwanCalendar::GetMonthsInYear method. Gets number of months in the specified year in C++."
---

## TaiwanCalendar::GetMonthsInYear(int, int) const method


Gets number of months in the specified year.

```cpp
int System::Globalization::TaiwanCalendar::GetMonthsInYear(int year, int era) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | Year to get number of months in. |
| era | int | Era. |

### ReturnValue

Number of months in the specified year of specified era.

## See Also

* Class [TaiwanCalendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PUB for C++](../../../)
## TaiwanCalendar::GetMonthsInYear(int) const method


RTTI information.

```cpp
virtual int System::Globalization::Calendar::GetMonthsInYear(int year) const
```

## See Also

* Class [TaiwanCalendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PUB for C++](../../../)
