private static String asHttpDate(long date){
  SimpleDateFormat dateFormat=new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z",Locale.US);
  return dateFormat.format(new Date(date));
}

private static String asHttpDate ( long date ) { SimpleDateFormat dateFormat = new SimpleDateFormat ( "EEE, dd MMM yyyy HH:mm:ss z" , Locale . US ) ; return dateFormat . format ( new Date ( date ) ) ; }
returns string representation of the http defined rfc 1123 date format .
