public static Date parseExact(final String value,final String format) throws ParseException {
  final DateFormat formatter=new SimpleDateFormat(format,Locale.getDefault());
  return formatter.parse(value);
}

public static Date parseExact ( final String value , final String format ) throws ParseException { final DateFormat formatter = new SimpleDateFormat ( format , Locale . getDefault ( ) ) ; return formatter . parse ( value ) ; }
given the format value parse the date time from the string .
