Java Parse Date Pattern YYYY parse(String date)

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

Description

parse

License

Open Source License

Declaration

public static Date parse(String date) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

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

import java.util.Date;

public class Main {
    private static final String DATE_FORMAT = "yyyyMMdd";

    public static Date parse(String date) throws ParseException {
        SimpleDateFormat sf = new SimpleDateFormat(DATE_FORMAT);
        return sf.parse(date);
    }//from   ww w  . j  av  a  2 s  .  c om
}

Related

  1. parse(String date)
  2. parse(String date)
  3. parse(String date)
  4. parse(String date)
  5. parse(String date)
  6. parse(String date, String format)
  7. parse(String dateAsString)
  8. parse(String DateStr)
  9. parse(String datestr)