## DateTime::DaysInMonth method


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

```cpp
static int System::DateTime::DaysInMonth(int year, int month)
```


| Parameter | Type | Description |
| --- | --- | --- |
| year | int | The year |
| month | int | The ordinal number of the month |

### ReturnValue

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

## See Also

* Class [DateTime](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
