## Calendar::IsValidDay method


检查年份、月份、日期和纪元值。

```cpp
bool System::Globalization::Calendar::IsValidDay(int year, int month, int day, int era) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 年份 | int | 年份。 |
| 月份 | int | 月份。 |
| 天 | int | 天。 |
| 纪元 | int | 纪元。 |

### ReturnValue

如果值有效则为 true。

## 另见

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