public static String formatDate(Date date) {
        return org.apache.http.client.utils.DateUtils.formatDate(date);
    }
public static String formatDate ( Date date ) { return org . apache . http . client . utils . DateUtils . formatDate ( date ) ; }
Formats the given date according to the RFC 1123 pattern.

@param date
The date to format.
@return An RFC 1123 formatted date string.