Years Beetween two date

Hi, as i wrote in the title i’m facing an issue related to the years-difference beetween two dates. Unfortunatelly, the datetime variable allow to count the days but I cannot manage leap years.
Hope I well explained the issue.
Thank you in advance

Have you tried Datediff?

can you show the current function you are using?

Hello @leonardo961900 Can you share sample input screenshots

DateDiff(DateInterval.Year,Date1,Date2)