Android Date String Parse parseLastfmDateLong(String date)

Here you can find the source of parseLastfmDateLong(String date)

Description

parse Lastfm Date Long

Declaration

public static Date parseLastfmDateLong(String date) 

Method Source Code

//package com.java2s;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static Date parseLastfmDateLong(String date) {
        if (date == null) {
            return null;
        }/*  w w  w .  j a  va  2  s  .  c om*/
        SimpleDateFormat dateFormat = new SimpleDateFormat(
                "EEE, dd MMMM yyyy HH:mm:ss ZZZZ");
        Date parsedDate = null;
        try {
            parsedDate = dateFormat.parse(date);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return parsedDate;
    }
}

Related

  1. parseIcalDateToString(Date date, TimeZone tz)
  2. parseDate(String s)
  3. parseDate(String value)
  4. parseLastfmDate(String date)
  5. parseLastfmDateAlbum(String date)
  6. isDate(String date)