Calendar.AddDaysAsync

Overview

Adds specified number of days to specified date time value and returns asynchronously.

Promise<DateTimeOffset> myCalendar.AddDaysAsync(dateTime: DateTimeOffset, days: number)

Arguments

DateTimeOffset dateTime

Specifies the base date time value.

number days

Specifies the how many days will be added to dateTime parameter.

Example

//adds 2 days to the current date and returns DateTimeOffset object. var newDate = await $Calendar.AddDaysAsync($Calendar.Today, 2) console.log(newDate);

See Also

Copyright © 2010 - 2023 Emakin. All rights reserved.