date_inc_year

With this function you can increment a given datetime value by a specific number of years, and it will return the new datetime value.

 

Syntax:

date_inc_year(date, amount);

ArgumentTypeDescription
dateDatetimeThe datetime to add to
amountRealThe number of years (must be an integer) to add.

 

Returns:

Real

 

Example:

mynewdatetime = date_inc_year(date_current_datetime(), 1000);

This would set mynewdatetime to the current date but with 1000 years added.