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

Adds specified number of hours to specified date time value and returns.

DateTimeOffset myCalendar.Add(dateTime: DateTimeOffset, hours: number)

Arguments

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

Example

var newDate = $Calendar.Add($Calendar.Today, 4); //adds 4 hours to the current date and returns the result as a DateTimeOffset object.
  • No labels