I want to compare two dates, however I\'m running into trouble. 1 date is created from a java.util.date object and the other is manually crafted. The following
java.util.date
This is a static method which works for me.
public static boolean isSameDay(DateTime date1, DateTime date2){ return date1.withTimeAtStartOfDay().isEqual(date2.withTimeAtStartOfDay()); }