if (this.getDayDate().before(todayDate)
if (DateFormatUtil.isBefore("yyyy/MM/dd HH:mm", evaluationDateAndTime, todayDate)
    public void checkIfCanDistributeStudentsByRooms() {        if (!this.hasAnyAssociatedRoomOccupation()) {            throw new DomainException("error.no.roms.associated");        }        final Date todayDate = Calendar.getInstance().getTime();        Date enrolmentEndDate = null;        // This can happen if the Enrolment Period for Evaluation wasn't defined        if (this.getEnrollmentEndDayDate() != null && this.getEnrollmentEndTimeDate() != null) {            enrolmentEndDate = createDate(this.getEnrollmentEndDayDate(), this                    .getEnrollmentEndTimeDate());        }        if (this.getDayDate().before(todayDate)                || (enrolmentEndDate != null && enrolmentEndDate.after(todayDate))) {            throw new DomainException("error.out.of.period.enrollment.period");        }    }