Here you can find the source of parseDate(String value, String formater)
public static Date parseDate(String value, String formater)
//package com.java2s; //License from project: Apache License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public final static SimpleDateFormat sdf = new SimpleDateFormat(); public static Date parseDate(String value, String formater) { Date date = null;//from w ww . j a v a2s . c o m sdf.applyPattern(formater); try { date = sdf.parse(value); } catch (ParseException e) { e.printStackTrace(); } return date; } }