Skip to content

AddMonths

Shaun Lawrence edited this page Aug 13, 2020 · 2 revisions

Returns the supplied date/time with the specified number of months added.

AddMonths(date, numberOfMonths)

Parameters

date

The date/time that will have the numberOfMonths added.

Type DateTime
Required Yes

numberOfMonths

The number of months to add to the date.

Type Double
Required Yes

Examples

AddMonths(#today#, 2)

Adds 2 months to the current date/time.

AddMonths(#today#, -2)

Subtracts 2 months from the current date/time.