/** * Returns an instance of a Calendar without any time of day, with the given * date. * * @param date the date of the Calendar. * @return an instance of a Calendar without any time of day. */ public static Calendar createCalendarInstance( Date date ) { Calendar calendar = new GregorianCalendar(); calendar.setTime( date ); clearTimeOfDay( calendar ); return calendar; }
PeriodType.clearTimeOfDay( today ); Date currentDate = today.getTime();
PeriodType.clearTimeOfDay( today ); Date todayDate = today.getTime();