## DateTime::DaysInMonth method


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| 年份 | int | 年份 |
| 月份 | int | 月份的序数 |

### ReturnValue

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

## 另见

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