Calculating months elapsed since a given date
Don't reinvent the wheel for what Joda time has already written for you:

int monthsBetween = Months.monthsBetween(new LocalDate(date1), new LocalDate()).getMonths();


From the localDate doc:


You can pass a string in the constructor. (you could test that)
Empty constructor is current time.