public static java.util.Date parseDateTime(String date,String format,String locale,String timeZone){
  SimpleDateFormat dateFormat=getDateFormat(format,locale,timeZone);
  try {
synchronized (dateFormat) {
      return dateFormat.parse(date);
    }
  }
 catch (  Exception e) {
    throw DbException.get(ErrorCode.PARSE_ERROR_1,e,date);
  }
}

public static java . util . Date parseDateTime ( String date , String format , String locale , String timeZone ) { SimpleDateFormat dateFormat = getDateFormat ( format , locale , timeZone ) ; try { synchronized ( dateFormat ) { return dateFormat . parse ( date ) ; } } catch ( Exception e ) { throw DbException . get ( ErrorCode . PARSE_ERROR_1 , e , date ) ; } }
parses a date using a format string .
