date_inc_week

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

 

Syntax:

date_inc_week(date, amount);

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

 

Returns:

Real

 

Example:

mynewdatetime = date_inc_week(date_current_datetime(), 52);

This would set mynewdatetime to the current date but with 52 weeks added.