Here you can find the source of getRfc822DateFormat()
public static SimpleDateFormat getRfc822DateFormat()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Locale; public class Main { private static final String formatRfc822 = "EEE, d MMM yyyy HH:mm:ss Z"; public static SimpleDateFormat getRfc822DateFormat() { // http://www.w3.org/Protocols/rfc822/Overview.html#z28 // Using Locale.US to fix ROL-725 and ROL-628 return new SimpleDateFormat(formatRfc822, Locale.US); }// www .j a v a2 s . co m }