If I calculate the difference between 2 LocalDate\'s in java.time using:
LocalDate
java.time
Period p = Period.between(testDate, today);
I would avoid using Period, and instead just calculate the difference in days:
float years = testDate1.until(today, ChronoUnit.DAYS) / 365.2425f;