1 if (taxTraySummaryListDTO.getStartDate() != null) {
2 Calendar cal = Calendar.getInstance();
3 cal.setTime(taxTraySummaryListDTO.getStartDate());
4 cal.set(Calendar.HOUR_OF_DAY, 0);
5 cal.set(Calendar.MINUTE, 0);
6 cal.set(Calendar.SECOND, 0);
7 cal.set(Calendar.MILLISECOND, 0);
8 taxTraySummaryListDTO.setStartDate(cal.getTime());
9 }
10 if (taxTraySummaryListDTO.getEndDate() != null) {
11 Calendar cal = Calendar.getInstance();
12 cal.setTime(taxTraySummaryListDTO.getEndDate());
13 cal.set(Calendar.HOUR_OF_DAY, 23);
14 cal.set(Calendar.MINUTE, 59);
15 cal.set(Calendar.SECOND, 59);
16 taxTraySummaryListDTO.setEndDate(cal.getTime());
17 }