EssentialsDateTime.AddMonths method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Time |
|---|---|
| Assembly | Skybrud.Essentials.dll |
AddMonths(int)
Returns a new EssentialsDateTime that adds the specified number of months to the value of this instance.
public EssentialsDateTime AddMonths(int months)
Parameters
months
int
A number of months. The months parameter can be negative or positive.
Returns
An object whose value is the sum of the date and time represented by this instance and months.
Exceptions
The resulting EssentialsDateTime is less
than System.DateTime.MinValue or greater than System.DateTime.MaxValue. Or
months is less than -120000 or greater than 120000.