Carrot reference
Functions
diffYears()
returns the total number of years between two given dates syntax diffyears(date1, date2) date1 the date from which counting begins date2 the date at which counting ceases return type number docid\ uci5tctfvbhonej6zqijg sample usage diffyears('2021 10 11', '2020 10 11') returns 1 supported data types input type return type logic date docid\ xtaqdzvlbtakjxrnpfwe9 (x2) number docid\ uci5tctfvbhonej6zqijg the function will count the number of years beginning with date1 , and ending with date2 unsupported data types null docid\ n9trvqonnbknql9drnbp6 unsupported data types return null