Here you can find the source of parse(String src)
public static java.util.Date parse(String src)
//package com.java2s; import java.text.DateFormat; import java.text.ParseException; public class Main { public static java.util.Date parse(String src) { try {/*from ww w. ja v a 2 s .c o m*/ return DateFormat.getDateInstance().parse(src); } catch (ParseException e) { return DateFormat.getInstance().getCalendar().getTime(); } } }