date_inc_month

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

Syntax:

date_inc_month( date, amount );


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


Returns: Real


Description

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


Example:

mynewdatetime = date_inc_month(date_current_datetime(), 12);

This would set "mynewdatetime" to the current date but with 12 months added.


Back: Date And Time
Next: date_inc_second
© Copyright YoYo Games Ltd. 2019 All Rights Reserved