## Calendar::GetDaysInMonth(int, int) const method


Gets number of days in specific month.

```cpp
virtual int System::Globalization::Calendar::GetDaysInMonth(int year, int month) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | Year. |
| month | int | Month to get number of days in. |

### ReturnValue

Number of days in specified month of specified year.

## See Also

* Class [Calendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## Calendar::GetDaysInMonth(int, int, int) const method


Gets number of days in specific month.

```cpp
virtual int System::Globalization::Calendar::GetDaysInMonth(int year, int month, int era) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | Year. |
| month | int | Month to get number of days in. |
| era | int | Era. |

### ReturnValue

Number of days in specified month of specified year of specified era.

## See Also

* Class [Calendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
