Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Overview

Returns sum of specified dateTime and years asynchronously.

Promise<DateTimeOffset> myCalendar.AddYearsAsync(dateTime: DateTimeOffset, years: number)

Arguments

Specifies the base date time value.
number years
Specifies the how many years will be added to dateTime parameter.

Example

//adds 3 years to the current date and returns DateTimeOffset object.

$Calendar.AddYearsAsync(new DateTimeOffset(), 3, function(newDate) {
   console.log(newDate);
});
  • No labels