| Parameter | Description |
start_date | The starting date from which the calculation begins. This can be a merge field, or an auto-date field (dynamic today's date or a current date). |
end_date | The date up to which the calculation has to be performed. Similar to the start_date, it can be a merge field or an auto date field. |
unit (optional) | Specifies the unit (years, months, days, etc.) in which the difference is calculated. If no unit is provided, the default value will be "D" (days). |
Unit | Description |
"Y" | Calculates the difference in years. |
"M" | Calculates the difference in months. |
"D" | Calculates the difference in days (default if no unit is specified). |
"MD" | Calculates the difference in days, excluding years and months. |
"YM" | Calculates the difference in months, excluding years. |
"YD" | Calculates the difference in days, excluding years. |