public static Date parse(String src,String ptrn) throws java.text.ParseException {
  java.text.DateFormat format=new java.text.SimpleDateFormat(ptrn);
  return format.parse(src);
}

public static Date parse ( String src , String ptrn ) throws java . text . ParseException { java . text . DateFormat format = new java . text . SimpleDateFormat ( ptrn ) ; return format . parse ( src ) ; }
parses passed string with specified date .
