Overview
Promise<DateTimeOffset> CalendarmyCalendar.AddAsync(datedateTime: DateTimeOffset, hours: number)
Arguments
DateTimeOffset dateTime
Specifies the base date time value.
number hours
Specifies the how many hours will be added to dateTime parameter.
...
Code Block | ||
---|---|---|
| ||
//adds 4 hours to the current date and returns the result as a DateTimeOffset object. $Calendar.AddAsync($Calendar.Today, 4).then(function(newDate) { console.log(newDate); }); |
...
See Also
...
...
language | js |
---|
...