List of utility methods to do Date RFC Format
String | getRFC822String(Date date) get RFC String return (RFC822.format(date));
|
String | makeDateRFC2822(Date date) make Date RFC SimpleDateFormat df = new SimpleDateFormat("EEE', 'dd' 'MMM' 'yyyy' 'HH:mm:ss' 'Z", Locale.US); return df.format(date); |
String | renderDateAsRFC822String(Date date) render Date As RFC String if (date == null) { return null; return RFC822DATEFORMAT.format(date); |
Date | resolvedDateRFC822(String pString) resolved Date RFC Date lDate = null; String[] lDateFormats = { "EEE, dd MMM yyyy kk:mm:ss z", "EEE, MMM dd yyyy kk:mm:ss z" }; if (pString != null && !"".equals(pString)) { SimpleDateFormat simpleFormatter = (SimpleDateFormat) formatter; for (int i = 0; i < lDateFormats.length; i++) { String lFormat = lDateFormats[i]; simpleFormatter.applyPattern(lFormat); try { ... |
String | rfc1123Date(Date d) Return the RFC1123 string representation of a date. if (d == null) return null; SimpleDateFormat asGMTrfc1123 = new SimpleDateFormat(PATTERN_RFC1123); asGMTrfc1123.setTimeZone(TimeZone.getTimeZone("GMT")); return asGMTrfc1123.format(d); |
String | rfc1123Format(Date date) rfc Format return RFC_1123.get().format(date);
|
String | rfc2822(Date date) rfc String pattern = "EEE, dd MMM yyyy HH:mm:ss Z"; SimpleDateFormat format = new SimpleDateFormat(pattern); return format.format(date); |
String | rfc822(Date date) rfc DateFormat dateFormat = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss z", Locale.US); TimeZone zone = new SimpleTimeZone(8, "GMT"); dateFormat.setTimeZone(zone); return dateFormat.format(date); |
String | rfc822Date(Date date) rfc Date final String DateFormat = "EEE, dd MMM yyyy HH:mm:ss "; SimpleDateFormat format; format = new SimpleDateFormat(DateFormat, Locale.US); format.setTimeZone(TimeZone.getTimeZone("GMT")); return format.format(date) + "GMT"; |
String | rfc822Date(final Date val) Turn Date into "???" synchronized (rfc822GMTFormat) { return rfc822GMTFormat.format(val); |