Java Year Parse parseDateyyyy_MM_DD2(String ds)

Here you can find the source of parseDateyyyy_MM_DD2(String ds)

Description

parse DateyyyMDD

License

Open Source License

Declaration

public static java.util.Date parseDateyyyy_MM_DD2(String ds) throws ParseException 

Method Source Code


//package com.java2s;

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

public class Main {
    public final static String DATE_FORMAT_yyyy_MM_dd = "yyyy-MM-dd";

    public static java.util.Date parseDateyyyy_MM_DD2(String ds) throws ParseException {
        return new java.util.Date(new SimpleDateFormat(DATE_FORMAT_yyyy_MM_dd).parse(ds).getTime());
    }/*  w  ww. j a v  a  2  s  .c  o m*/
}

Related

  1. parse2yyyyMMddHHmmss(String date)
  2. parseDashedDateDDMMYYYY(String date)
  3. parseDateSlashedMmDdYyyy(String dateStr)
  4. parseDateTime_mmddyyyy(String s)
  5. parseDateyyyyMMdd(String value)
  6. parseddMMyyyy(String dateStr)
  7. parseDdMmYyyyDate(String date)
  8. parseTimeByYYYYMMDDHHMMSS(String str)