Skip to content

AddYear

Adds calendar years and adjusts the result to the next time included by this calendar.

myCalendar.AddYear(dateTime: DateTimeOffset, years: number):DateTimeOffset (DateTimeOffset)

Parameters

DateTimeOffset dateTime
    The base date and time.

number years
    The number of years to add.

Returns

The adjusted date and time.

Remarks

Server workflow scripts only. This is a compatibility alias for AddYears().

See Also