Android Date String Parse parse(String src)

Here you can find the source of parse(String src)

Description

parse

Declaration

public static java.util.Date parse(String src) 

Method Source Code

//package com.java2s;
import java.text.DateFormat;
import java.text.ParseException;

public class Main {
    public static java.util.Date parse(String src) {
        try {/*from ww  w.  ja  v  a  2 s  .c  o m*/
            return DateFormat.getDateInstance().parse(src);
        } catch (ParseException e) {
            return DateFormat.getInstance().getCalendar().getTime();
        }
    }
}

Related

  1. isDateTimeString(String dirtyDateTime)
  2. parse(String date)
  3. parse(String date, String format)
  4. parse(String date, boolean isDateOnly)
  5. parse(String dateString, String dateFormat)
  6. parseDA(String s, boolean end)
  7. parseDT(String s, boolean end)
  8. parseDate(String atomPubDate)
  9. parseDate(String atomPubDate, Locale locale)