Updated: 2025-09-12
Use the addymd() function to add years, months or days to a date.
Insert the number of years, months or days after the first comma, then the Y, M, D parameters. The first parameter is the number of years, the second is the number of months and the third is the number of days.
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 |
---|---|
{{addymd(CurrentClient.Engage.Engagement.FilingDeadline,0,1,1)}} |
2025-03-29 12:00:00 AM |
Unlike addmonth(), this function does not take into account leap years or the differing lengths of months.