> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/date-and-time/addmonths.md).

# addMonths

addMonths() function is the Standard function available in 200OK.

**Description** : The addMonths function adds the specified number of months to the given date, adjusting for the last day of the month if necessary.

**Syntax** : fx\_addMonths()

**Example** : fx\_addMonths(2023-03-07,2) returns '2023-05-07' as the response, adding two months to the input date.

Here we go with simple scenario using the above function.

**Scenario** : In a project management application, a project manager schedules tasks with specific deadlines. They utilize a function to adjust task deadlines by adding a certain number of months. For instance, if a task originally has a deadline of March 7, 2023, adding two months using the function results in a new deadline of May 7, 2023.

**Request Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/3xddDwBkOFSC-cxT1JrzM8KRYMUkuv138zl5mtpDxyZ8J2q_mgonMeLf6nBcylabv0yrKkzRDokQFEmOWIQVcfSJZthwoopLVTpdg3hSW0OgyT2eoEYipFDzS16sVIQ0GTYTFQjIMP4CrC1vGDc1C5k" alt=""><figcaption></figcaption></figure>

**Response Side** :&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/nECLVsP5J0AHjP1iuz01vwYG-7Urn7L0o0_QuXRrFt1bAiiSm_3Rm_vcthxa7VZa7qDoUNJznq8HrSdNTLwb1sS5AsSBDT56TMo3TsGkMpW29ZMFCXC6uPjpESv8Wpc0cwyIJEyo60MCTLDY5eey1LQ" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/LxkHDxjT7P9Ft4e9_7KAw2yupYui7kYysUSI2Nl7u4Fpw0YQuUYRjUzoSRIZWpWdESMXzE_bl1LDW1ZUuswftQwc5A-ygLxN3zwy714IqvGBR38qR4dyByIpwHUxHHgxp4wXkS-2w5LThLE3YId8ofI" alt=""><figcaption></figcaption></figure>
