Java Year Format yyyyMMddStringToDate(String date)

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

Description

yyyy M Mdd String To Date

License

Apache License

Declaration

public static Date yyyyMMddStringToDate(String date) throws Exception 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static Date yyyyMMddStringToDate(String date) throws Exception {
        return new SimpleDateFormat("yyyy.MM.dd").parse(date);
    }//w  w w  .j av a 2  s  . c  o m
}

Related

  1. yyyyMMdd(Date date)
  2. yyyyMMdd(Date date)
  3. yyyymmddFormat(Date date)
  4. yyyyMMddFormatter()
  5. yyyyMMddHHmmss2date(String str)