Skip to content

AddYears

Shaun Lawrence edited this page Aug 13, 2020 · 2 revisions

Returns the supplied date/time with the specified number of years added.

AddYears(date, numberOfYears)

Parameters

date

The date/time that will have the numberOfYears added.

Type DateTime
Required Yes

numberOfYears

The number of years to add to the date.

Type Double
Required Yes

Examples

AddYears(#today#, 2)

Adds 2 years to the current date/time.

AddYears(#today#, -2)

Subtracts 2 years from the current date/time.

Clone this wiki locally