If you want to calculate the number of whole years between two dates in Google Sheets, then use the DATEDIF function along with cell #1 and cell #2 with year unit (Y). So, let's say you have a date in cell C4 and the second date in cell C5, then to calculate the years between those two dates, the formula will be:
=DATEDIF(C4, C5, "Y")