Android Date String Parse parseDate(String date)

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

Description

parse Date

Declaration

public static Date parseDate(String date) 

Method Source Code

//package com.java2s;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static final SimpleDateFormat DATE_FORMATOR = new SimpleDateFormat(
            "yyyy-MM-dd HH:mm:ss");

    public static Date parseDate(String date) {
        try {/*from  w ww.  jav a 2s. c  om*/
            return DATE_FORMATOR.parse(date);
        } catch (Exception e) {
            return null;
        }
    }
}

Related

  1. convertimeStumpToDate2(String time)
  2. convertDateTimeStrFormat(String dateStr, String pattern, String newPattern)
  3. convertStringToDate(String strDate, String pattern)
  4. parse(String pattern, String date)
  5. parse3339(String time)
  6. parseDate(String date)
  7. parseDate(String rawDate)
  8. parseDateStr(String dateStr, String srcPattern, String destPattern)
  9. parseDateString(String dateStr, String pattern)