Java Parse HTTP Date parseHttpDateString(String s)

Here you can find the source of parseHttpDateString(String s)

Description

parse Http Date String

License

Open Source License

Declaration

public static Date parseHttpDateString(String s) throws ParseException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    public static Date parseHttpDateString(String s) throws ParseException {
        return new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US).parse(s);
    }// w  w w  .jav a 2 s.c  om
}

Related

  1. parseHttpDate(String s)
  2. parseHttpDate(String string)
  3. parseHttpDate(String stringValue)
  4. parseHttpDate(String value)
  5. parseHttpDateFormat(String httpDateFormat)