this.setDayDate(calendar.getTime());
if (calendar.getTime() != null) { this.setDayDate(calendar.getTime()); } else { this.setDayDate(null); }
    public void setDay(Calendar calendar) {        this.setDayDate(calendar.getTime());    }