public String getCurrentDateAndTime() {
        return format(ZonedDateTime.now(ZoneOffset.UTC));
    }
Gets the current date and time
formatted by the pattern specified.

@return the current date and time
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ISOStandardDateFormat.java