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