final Date initialDate = degreeCurricularPlan.getInitialDate(); final Date mostRecentInitialDate = degreeCurricularPlan.getInitialDate(); if (mostRecentDegreeCurricularPlan == null || initialDate.after(mostRecentInitialDate)) { mostRecentDegreeCurricularPlan = degreeCurricularPlan; }
if (mostRecentDegreeCurricularPlan == null || degreeCurricularPlan.getInitialDateYearMonthDay().isAfter( mostRecentDegreeCurricularPlan.getInitialDateYearMonthDay())) { mostRecentDegreeCurricularPlan = degreeCurricularPlan; }
    private DegreeCurricularPlan getMostRecentDegreeCurricularPlanByInitialDate() {        DegreeCurricularPlan mostRecentDegreeCurricularPlan = null;        for (final DegreeCurricularPlan degreeCurricularPlan : this.getActiveDegreeCurricularPlans()) {            final Date initialDate = degreeCurricularPlan.getInitialDate();            final Date mostRecentInitialDate = degreeCurricularPlan.getInitialDate();            if (mostRecentDegreeCurricularPlan == null || initialDate.after(mostRecentInitialDate)) {                mostRecentDegreeCurricularPlan = degreeCurricularPlan;            }        }        return mostRecentDegreeCurricularPlan;    }