Java Date RFC Format getRfc822DateFormat()

Here you can find the source of getRfc822DateFormat()

Description

get Rfc Date Format

License

Apache License

Declaration

private static DateFormat getRfc822DateFormat() 

Method Source Code


//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*/
}

Related

  1. getRFC2616Date(Date date)
  2. getRFC3339String(Calendar timestamp)
  3. getRFC822()
  4. getRFC822Date()
  5. getRfc822DateFormat()
  6. getRfc822DateStringGMT(Date date)
  7. getRFC822String(Date date)
  8. makeDateRFC2822(Date date)
  9. renderDateAsRFC822String(Date date)