Here you can find the source of yyyyMMddStringToDate(String date)
public static Date yyyyMMddStringToDate(String date) throws Exception
//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 }