public static String dateToHeaderString(Date dat){
  SimpleDateFormat fmt=new SimpleDateFormat(HTTP_FORMAT,Locale.US);
  fmt.setTimeZone(GMT_ZONE);
  return (fmt.format(dat));
}

public static String dateToHeaderString ( Date dat ) { SimpleDateFormat fmt = new SimpleDateFormat ( HTTP_FORMAT , Locale . US ) ; fmt . setTimeZone ( GMT_ZONE ) ; return ( fmt . format ( dat ) ) ; }
convert a date in iso 8601 format to the format needed for an http header .
