How to use JDK GregorianCalendar object dates with Joda
问题 I'm trying to use Joda library since count periods with Java native methods is a pain in the neck and all my attempts give unprecise results I have seen this sample to int n = Days.daysBetween(start.toLocalDate(), end.toLocalDate()).getDays(); since all my classes manage GregorianCalendar, I need that method that counts the days support GregorianCalendar, something like public int countDays(GregorianCalendar start, GregorianCalendar end){ //convert to joda start and end ... return Days