Here you can find the source of getRfc822DateFormat()
private static DateFormat getRfc822DateFormat()
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Locale; import java.util.SimpleTimeZone; public class Main { private static final String RFC822_DATE_FORMAT = "EEE, dd MMM yyyy HH:mm:ss z"; private static DateFormat getRfc822DateFormat() { SimpleDateFormat rfc822DateFormat = new SimpleDateFormat(RFC822_DATE_FORMAT, Locale.US); rfc822DateFormat.setTimeZone(new SimpleTimeZone(0, "GMT")); return rfc822DateFormat; }/*www . jav a 2s . c o m*/ }