public static java.sql.Date toSqlDate(String date){
  java.util.Date newDate=toDate(date,"00:00:00");
  if (newDate != null) {
    return new java.sql.Date(newDate.getTime());
  }
 else {
    return null;
  }
}

public static java . sql . Date toSqlDate ( String date ) { java . util . Date newDate = toDate ( date , "00:00:00" ) ; if ( newDate != null ) { return new java . sql . Date ( newDate . getTime ( ) ) ; } else { return null ; } }
converts a date string into a java . sql . date
