question: 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 ) ; }
target:  Formats a date into a cookie date compatible string (Netscape's specification).