Carrot reference
Functions
diffYears()
Returns the total number of years between two given dates.
diffYears(date1, date2)
- date1 - the date from which counting begins.
- date2 - the date at which counting ceases.
diffYears('2021-10-11', '2020-10-11') returns 1.
Updated 04 Oct 2023
Did this page help you?