Parameters
- time
- The System.DateTime to which to add months.
- months
- The number of months to add.
Return Value
The System.DateTime that results from adding the specified number of months to the specified System.DateTime.
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | months is less than -120000.-or- months is greater than 120000. |
System.ArgumentException | The resulting System.DateTime is outside the supported range. |