federation/ldap/src/main/java/org/keycloak/federation/ldap/idm/store/ldap/LDAPUtil.java
/**
     * <p>Formats the given date.</p>
     *
     * @param date The Date to format.
     *
     * @return A String representing the formatted date.
     */
Formats the given date.
@param date The Date to format.

@return A String representing the formatted date.
Formats the given date . @param date The Date to format . @return A String representing the formatted date .
public static final String formatDate(Date date) {
        if (date == null) {
            throw new IllegalArgumentException("You must provide a date.");
        }
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss'.0Z'");
        dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        return dateFormat.format(date);
    }
public static final String formatDate ( Date date ) { if ( date == null ) { throw new IllegalArgumentException ( "You must provide a date." ) ; } SimpleDateFormat dateFormat = new SimpleDateFormat ( "yyyyMMddHHmmss'.0Z'" ) ; dateFormat . setTimeZone ( TimeZone . getTimeZone ( "UTC" ) ) ; return dateFormat . format ( date ) ; }
<p>Formats the given date.</p>
 @param date The Date to format.
<p > Formats the given date . < / p > @param date The Date to format .