public static Date parseDate(final String format,final String dateString) throws DSSException {
  try {
    final SimpleDateFormat sdf=new SimpleDateFormat(format);
    final Date date=sdf.parse(dateString);
    return date;
  }
 catch (  ParseException e) {
    throw new DSSException(e);
  }
}

public static Date parseDate ( final String format , final String dateString ) throws DSSException { try { final SimpleDateFormat sdf = new SimpleDateFormat ( format ) ; final Date date = sdf . parse ( dateString ) ; return date ; } catch ( ParseException e ) { throw new DSSException ( e ) ; } }
converts the given string representation of the date using the format pattern .
