I’m using Joda time to get the time that has passed between 2 different dates. when i run it within my android application it seems to break the application.
this is the code that i am using
Date past = new Date(110, 5, 20); // June 20th, 2010
Date today = new Date(110, 6, 24); // July 24th
int days = Days.daysBetween(new DateTime(past), new DateTime(today)).getDays();
mDateDisplay.setText(""+days);
any idea why this is happening and how i can solve it
Use LocalDate from joda-API