DateTime.addMonth()

Signature

DateTime addMonth (DateTime date, int months)

Domain

ACTION, CONDITION, QUERY, BUI

Description

Adds a number of months to a DateTime and returns the result. The input DateTime is not modified.

Parameters

NameTypeDescription
dateDateTimeA DateTime to add some amount of time to.
monthsintThe number of months to add to the DateTime.

Returns

TypeDescription
DateTimeA mew DateTime that results from adding the number of time units to the date argument.

Cautions

none