Calendar.AddMonthsAsync
Overview¶
Promise<DateTimeOffset> Calendar.AddMonthsAsync ( dateTime, months, [callback] )
Arguments¶
DateTimeOffset dateTime Specifies the base date time value.
Number months Specifies the how many months will be added to dateTime parameter.
Function callback Callback to execute. Optional.
Remarks¶
Examples¶
//adds 2 months to the current date and returns DateTimeOffset object. $Calendar.AddMonthsAsync($Calendar.Today, 2).then(function(newDate) { console.log(newDate); });