Returns a datetime after a given number of days have been added.


date_inc_day(date, amount);

Argument Description
date The datetime to add to.
amount The number of days (must be an integer) to add.

Returns: Real


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


mynewdatetime = date_inc_day(date_current_datetime(), 365);

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

Back: Date And Time
Next: date_inc_hour
© Copyright YoYo Games Ltd. 2018 All Rights Reserved