Java Date RFC Format getRfc822DateFormat()

Here you can find the source of getRfc822DateFormat()

Description

get Rfc Date Format

License

Apache License

Declaration

public static SimpleDateFormat getRfc822DateFormat() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Locale;

public class Main {
    private static final String formatRfc822 = "EEE, d MMM yyyy HH:mm:ss Z";

    public static SimpleDateFormat getRfc822DateFormat() {
        // http://www.w3.org/Protocols/rfc822/Overview.html#z28
        // Using Locale.US to fix ROL-725 and ROL-628
        return new SimpleDateFormat(formatRfc822, Locale.US);
    }// www .j a v  a2 s . co m
}

Related

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