...
Specifies the offset value for relative date time. Optional, if not specified current date time is used.
Returns
Code Block | ||
---|---|---|
| ||
var nextDate = await $Calendar.GetDateTimeAsync('PT2H', DateTimeOffset.parse('2023-02-08T17:00'));
// nextDate will be set to '2020-02-09T09:00' |