Here you can find the source of parseDate(String applyDt)
public static Date parseDate(String applyDt) throws ParseException
//package com.java2s; //License from project: Apache License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static Date parseDate(String applyDt) throws ParseException { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); return simpleDateFormat.parse(applyDt + "000000"); }//from w ww . ja va 2 s . c o m }