Home Search

DriveWorks Pro 24
DateAddMonths

Send Feedback

DateAddMonths

Adds a specified number of months to a date value.

Syntax

DateAddMonths(Start Date, Months)

Where:

Start Date The date to adjust.

Months The number of months to add. Negative values can be used to subtract.

Examples

Example 1

DateAddMonths(Now(),7)

Will add seven months to the result of the Now function.

Example 2

DateAddMonths(Now(),-4)

Will subtract four months from the result of the Now function.

Example 3

DateAddMonths(DatePicker1Return,8)

Will add eight months to the result of the Date Picker control.