Skip to content

AddYears

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

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

AddYears(date, numberOfYears)

Parameters

date

The date 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.

AddYears(#today#, -2)

Subtracts 2 years from the current date.

Clone this wiki locally