## DateTime::DaysInMonth method


返回指定年份中指定月份的天数。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 年份 | int | 年份 |
| 月份 | int | 月份的序号 |

### ReturnValue

指定年份中指定月份的天数。

## 另见

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