System::DateTime::AddMonths 方法
DateTime::AddMonths method
返回一个新的 DateTime 类实例,表示当前对象表示的日期时间值与指定月份之和。
DateTime System::DateTime::AddMonths(int value) const
| Parameter | Type | 描述 |
|---|---|---|
| value | int | 要添加的月份数;该值可以为正或负 |
ReturnValue
一个新的 DateTime 类实例,表示当前对象表示的日期时间值与 value 月之和
另见
- Class DateTime
- Class DateTime
- Namespace System
- Library Aspose.Page for C++