Here you can find the source of renderDateAsRFC822String(Date date)
public static String renderDateAsRFC822String(Date date)
//package com.java2s; //License from project: LGPL import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static SimpleDateFormat RFC822DATEFORMAT = new SimpleDateFormat("EEE', 'dd' 'MMM' 'yyyy' 'HH:mm:ss' 'Z", Locale.US);//from www. ja v a 2s . c om public static String renderDateAsRFC822String(Date date) { if (date == null) { return null; } return RFC822DATEFORMAT.format(date); } }