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