Calendar tCal = Calendar.getInstance(timezone);
tCal.setTimeInMillis(startWeekDay.getTimeInMillis()
+ (z * 86400000L));
Day day = new Day(tCal.getTime());
for (Appointment appointment : appointments) {
if (appointment
.appointmentStartAsCalendar(timezone).get(
Calendar.MONTH) == tCal
.get(Calendar.MONTH)
&& appointment.appointmentStartAsCalendar(
timezone).get(Calendar.DATE) == tCal
.get(Calendar.DATE)) {
day.getAppointments().add(
new AppointmentDTO(appointment,
timezone));
}
}