---
schema_version: "1"
id: 3582edb4dfea6072dbc5fa7dc757e07d3f80756484f16c3ca98f1552973ec3fb
title: ADDMONTHS
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_addmonths.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_addmonths.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: afd4a1efaae7473a5284296c6f68fdc64f90676cc35f566c919aa0fd30905b74
description: Returns the date that is the indicated number of months before or after a specified date. If the specified date is the last day of the month, the resulting date is the last day of the resulting month. Otherwise, the result has the same date component as the specified date.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# ADDMONTHS

Returns the date that is the indicated number of months before or after a specified date. If the specified date is the last day of the month, the resulting date is the last day of the resulting month. Otherwise, the result has the same date component as the specified date.

## Use

`ADDMONTHS` (date, num) and replace date with the start date and num with the number of months to be added.

![Generic Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Generic Example `ADDMONTHS (StartDate, 5)`

Adds 5 months to the start date. For example, if the start date is September 20, 2017, the resulting date is February 20, 2018, If the start date is September 30, 2017, the resulting date is February 28, 2018.