Overview
DateTimeOffset Calendar myCalendar.AddMonths(datedateTime: DateTimeOffset, months: number)
Arguments
DateTimeOffset dateTime
Specifies the base date time value.
number months
Specifies the how many months will be added to dateTime parameter.
...
Code Block | ||
---|---|---|
| ||
var newDate = $Calendar.AddMonths($Calendar.Today, 2); //adds 2 months to the current date and returns DateTimeOffset object. |
Examples
...
language | js |
---|
...