Android Date String Parse parseDate(String rawDate)

Here you can find the source of parseDate(String rawDate)

Description

parse Date

Declaration

public static Date parseDate(String rawDate) 

Method Source Code

//package com.java2s;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    private static SimpleDateFormat PARSER_GRIND = new SimpleDateFormat(
            "EEE, d MMM yyyy HH:mm:ss Z", Locale.US);

    public static Date parseDate(String rawDate) {
        try {//from   w ww .  j a v  a  2 s.  co  m
            return PARSER_GRIND.parse(rawDate);
        } catch (ParseException e) {
            return new Date();
        }
    }
}

Related

  1. convertStringToDate(String strDate, String pattern)
  2. parse(String pattern, String date)
  3. parse3339(String time)
  4. parseDate(String date)
  5. parseDate(String date)
  6. parseDateStr(String dateStr, String srcPattern, String destPattern)
  7. parseDateString(String dateStr, String pattern)
  8. parseDateString(String dateStr, String pattern, Locale locale)
  9. parseSimpleDate(String dateString)