code: public static java.sql.Date getSqlDate(int year, int month, int date) {
          Calendar cal = Calendar.getInstance();
          cal.setTime(new java.util.Date(0));
          cal.set(Calendar.YEAR, year);
          cal.set(Calendar.MONTH, month - 1);
          cal.set(Calendar.DATE, date);
          cal.set(Calendar.HOUR_OF_DAY, 0);
          cal.set(Calendar.MINUTE, 0);
          cal.set(Calendar.SECOND, 0);
          cal.set(Calendar.MILLISECOND, 0);
  
          return getSqlDate(cal.getTime());
      }
docs: Get SQL Date(java.sql.Date) from supplied parameters
  
  @param month
  @param date
  @return