Here you can find the source of parseRFC822(String dateString)
public static synchronized Date parseRFC822(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; public class Main { protected static DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); protected static DateFormat rfc822DateFormat = new SimpleDateFormat("EEE, dd MMM yyyy kk:mm:ss zzz"); public static synchronized Date parseRFC822(String dateString) throws ParseException { return rfc822DateFormat.parse(dateString); }//from w w w . j ava2 s . c o m public static synchronized Date parse(String dateString) throws ParseException { return dateFormat.parse(dateString); } }