Assuming this is how you get the current time in Joda time:
DateTime now = new DateTime();
How do you calculate values for the variables
import org.joda.time.DateTime; import org.joda.time.DateTimeMidnight; DateTime dateTimeAtStartOfToday = new DateTime(new DateTimeMidnight()); DateTime dateTimeAtEndOfToday = new DateTime((new DateTimeMidnight()).plusDays(1));