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


GML Code Example

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


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


GML Code Example

mynewdatetime = date_inc_week(date_current_datetime(), 52);

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

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here