public static Date dateOf(final LocalDate time) {
        return Date.from(time.atStartOfDay(ZoneOffset.UTC).toInstant());
    }
Date of local date.

@param time the time
@return the date
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/DateTimeUtils.java