Java Parse Date parseDate(final String date)

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

Description

parse Date

License

Apache License

Declaration

public static Date parseDate(final String date) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

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

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

    public static Date parseDate(final String date) throws ParseException {
        return DATE_FORMAT.parse(date);
    }/*from w  w w .  j  av a 2 s .c om*/
}

Related

  1. parseDate(DateFormat df, String dateStr)
  2. parseDate(DateFormat f, String date)
  3. parseDate(final Date date)
  4. parseDate(final String date)
  5. parseDate(final String date)
  6. parseDate(final String date)
  7. parseDate(final String date, final List patterns)
  8. parseDate(final String date, final String format)
  9. parseDate(final String dateStr)