Can we get no.of years by substracting two dates

Hi,
can anyone help me out …

is it possible to get no.of years by substracting two dates.

Thanks in advance

1 Like

Hey @saritha

You can please do the following,

Math.Abs(Date1.Year - Date2.Year)

Provided date1 and date2 are two date time variables

Hope this helps

Thanks
#nK

1 Like

ok Got it.

Thanks for ur reply

1 Like

Cool @saritha

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.