/** * For inclusive date ranges the start date time portion needs to be set to the beginning of the * day. * * @param startDate * @return same day but the time is adjusted to start of day */ public static Date adjustTimeToStartOfDay(Date startDate) { return DateUtil.getAbsoluteDate(START_OF_TODAY, startDate, START); }
/** * For inclusive date ranges the end date time needs to be the end of the day. * * @param endDate * @return same day but time portion adjusted to end of day */ public static Date adjustTimeToEndOfDay(Date endDate) { return DateUtil.getAbsoluteDate(END_OF_TODAY, endDate, END); }