date_inc_week

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

Syntax:

date_inc_week(date, amount);


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


Returns: Real


Description

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


Example:

mynewdatetime = date_inc_week(date_current_datetime(), 52);

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


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