Question: how to find difference between two dates in years months and days in java?
Answer: Period p = Period. between( earlier , today ) ; int years = p. getYears(); int months = p. getMonths(); int days = p.