I am getting incorrect results whatever I do. Could anyone give me some advise please :).
Here is the code of my program the is responsible for getting the time between
Your bug is in these two lines:
int daysoutput = Days.daysBetween(datestartdaytime, datestartdaytime).getDays() % 30;
int hoursoutput = Hours.hoursBetween(datestartdaytime, datestartdaytime).getHours() % 24;
You intended to use dateenddaytime
as the second argument:
int daysoutput = Days.daysBetween(datestartdaytime, dateenddaytime).getDays() % 30;
int hoursoutput = Hours.hoursBetween(datestartdaytime, dateenddaytime).getHours() % 24;