public static java.sql.Date toSqlDate(int month,int day,int year){
  java.util.Date newDate=toDate(month,day,year,0,0,0);
  if (newDate != null) {
    return new java.sql.Date(newDate.getTime());
  }
 else {
    return null;
  }
}

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