private static String toCookieDate(Date date){
  TimeZone tz=TimeZone.getTimeZone(GMT_TIME_ZONE_ID);
  DateFormat fmt=new SimpleDateFormat(COOKIE_DATE_FORMAT_STRING,Locale.US);
  fmt.setTimeZone(tz);
  return fmt.format(date);
}

private static String toCookieDate ( Date date ) { TimeZone tz = TimeZone . getTimeZone ( GMT_TIME_ZONE_ID ) ; DateFormat fmt = new SimpleDateFormat ( COOKIE_DATE_FORMAT_STRING , Locale . US ) ; fmt . setTimeZone ( tz ) ; return fmt . format ( date ) ; }
formats a date into a cookie date compatible string ( netscape ' s specification ) .
