date_inc_day

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

 

Syntax:

date_inc_day(date, amount);

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

 

Returns:

Real

 

Example:

mynewdatetime = date_inc_day(date_current_datetime(), 365);

This would set "mynewdatetime" to the current date but with 365 days added.