I am developing an android App.
I would like to know how to calculate exact number of "years, months and days" between two dates.
e.g. 1. "2014.1.3" to "2015.1.4" →Answer: "1 year and 1 day"
- "2013.1.3" to "2014.4.2" →Answer: "1 year and 2 months and 30 days"
I think iPhone app has this class "NSDateComponent(NSYearCalendarUnit,NSMonthCalendarUnit,NSDayCalendarUnit)", but it seems not for the Android.
Is there any effective way in android?