Java Date RFC Format renderDateAsRFC822String(Date date)

Here you can find the source of renderDateAsRFC822String(Date date)

Description

render Date As RFC String

License

LGPL

Declaration

public static String renderDateAsRFC822String(Date date) 

Method Source Code

//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);
    }
}

Related

  1. getRfc822DateFormat()
  2. getRfc822DateFormat()
  3. getRfc822DateStringGMT(Date date)
  4. getRFC822String(Date date)
  5. makeDateRFC2822(Date date)
  6. resolvedDateRFC822(String pString)
  7. rfc1123Date(Date d)
  8. rfc1123Format(Date date)
  9. rfc2822(Date date)