Here you can find the source of parseRfc822Date(String dateString)
public static Date parseRfc822Date(String dateString) throws ParseException
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; 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"; public static Date parseRfc822Date(String dateString) throws ParseException { return getRfc822DateFormat().parse(dateString); }/*from w w w. ja v a 2s . c o m*/ private static DateFormat getRfc822DateFormat() { SimpleDateFormat rfc822DateFormat = new SimpleDateFormat(RFC822_DATE_FORMAT, Locale.US); rfc822DateFormat.setTimeZone(new SimpleTimeZone(0, "GMT")); return rfc822DateFormat; } }