Updated: 2025-09-12
Use the addmonth() function to add months to a date. Insert the number of months after the comma and before the closing parenthesis. To subtract, enter the number of months as a negative number, wrapped in parentheses. This function can be used in conjunction with the format() function to control the output of the date.
The examples below assume a filing deadline of February 28, 2025:
Code | Result |
---|---|
{{addmonth(CurrentClient.Engage.Engagement.FilingDeadline,2)}} |
2025-04-30 12:00:00 AM |
{{addmonth(CurrentClient.Engage.Engagement.FilingDeadline,(-3))}} |
2024-11-30 12:00:00 AM |
Unlike addymd(), this function has a bias toward the last day of the month, allowing it to handle months of different lengths and leap years. If the date passed to the function is the last day of the month, the date returned will also be the last day of the month. For example, February 29, 2024, plus 1 month will be March 31, 2024, whereas February 28, 2024, plus 1 month will equal March 28, 2024.