Here you can find the source of unmarshalYYYYMMDD(String date)
public static Date unmarshalYYYYMMDD(String date)
//package com.java2s; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; public class Main { private static DateFormat dfYYYYMMDD = null; public static Date unmarshalYYYYMMDD(String date) { try {/*from w w w . ja v a2s. c o m*/ return dfYYYYMMDD.parse(date); } catch (ParseException ex) { ex.printStackTrace(); return null; } } }