Date.AddYears

This function retrieves the date, datetime, or datetimezone obtained by adding the specified number of years to a given datetime value. dateTime: The original date, datetime, or datetimezone to which...

Syntax

Date.AddYears(dateTime as any, numberOfYears as number) as any

About

This function retrieves the date, datetime, or datetimezone obtained by adding the specified number of years to a given datetime value. dateTime: The original date, datetime, or datetimezone to which the years will be added. numberOfYears: The quantity of years to increase by.