I am looking for a way to get the difference between two dates, as the title says, in Java. For example, if `d1 = 2017-01-23 05:25:00` and `d2 = 2018-03-20 07:29:50`, some method would print

```
Years: 1
Months: 1
Days: 25
Hours: 2
Minutes: 4
Seconds: 50

```

I have tried to do this using LocalDateTime objects, but I cannot find a way to get the months between them. I don't see a need to include that code, but I can if it is needed. I don't care what type the dates are, but I would like to not use Joda time or other external libraries. Thank you in advance for your help.