How to find difference between two dates in years months and days in Java? [duplicate]
问题 This question already has answers here : Calculating the difference between two Java date instances (44 answers) How to find the duration of difference between two dates in java? (16 answers) Java method to find difference between 2 date objects in years, months and days (7 answers) Closed 1 year ago . Suppose I have : Employee model which has startDate as its property variable and Promotion model has promotionDate . I want to find out for how long employee has worked until his promotion for