Java Year Format toYyyyMMddToDate(String date)

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

Description

to Yyyy M Mdd To Date

License

Apache License

Declaration

public static Date toYyyyMMddToDate(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 {
    private final static SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyyMMdd");

    public static Date toYyyyMMddToDate(String date) throws ParseException {
        return yyyyMMdd.parse(date);
    }//w ww  .  j  a  va  2s .  c  o  m
}

Related

  1. lastDayOfWeek(String year, int week, String format)
  2. stringYYYYmmDDhhMMssToDate(String value)
  3. toDateString(String ddMMMyyyy)
  4. toYYYYMM(Date date)
  5. toYYYYMMDD(Calendar cal)
  6. unmarshalYYYYMMDD(String date)
  7. yyyyMMdd(Date date)
  8. yyyyMMdd(Date date)
  9. yyyymmddFormat(Date date)