How to get difference between current date and other date ( java.util.Date) in years in Java
I have incoming java.util.Date object and I need to get how many whole years are between them.
I tried Joda's time Period but I have to create joda's time object. Is there other way to calculate this difference. Way to get millis and try to convert it to years doesn't count leap years.