show / hide menu

AddMonths

This function is used to add months to a date value.

Syntax:
AddMonths(Date value, Number of months, Date Format)

Date Value is the date to which you need to add the given number of months.
Number of Months is the months that needs to be added to the given date.
Date Format(Optional) : Current Date Format

Example:
DateTimePicker2.Value=AddMonths(DateTimePicker1.Value,2)