public static java.sql.Date toSqlDate(String monthStr,String dayStr,String yearStr){
  java.util.Date newDate=toDate(monthStr,dayStr,yearStr,"0","0","0");
  if (newDate != null) {
    return new java.sql.Date(newDate.getTime());
  }
 else {
    return null;
  }
}

public static java . sql . Date toSqlDate ( String monthStr , String dayStr , String yearStr ) { java . util . Date newDate = toDate ( monthStr , dayStr , yearStr , "0" , "0" , "0" ) ; if ( newDate != null ) { return new java . sql . Date ( newDate . getTime ( ) ) ; } else { return null ; } }
makes a java . sql . date from separate strings for month , day , year
