code: public void setDate(final int parameterIndex, final Date date) throws SQLException {
          if(date == null) {
              setNull(parameterIndex, Types.DATE);
              return;
          }
  
  
          setParameter(parameterIndex, new DateParameter(date.getTime()));
      }
docs: Sets the designated parameter to the given <code>java.sql.Date</code> value using the default time zone of the
  virtual machine that is running the application. The driver converts this to an SQL <code>DATE</code> value when
  it sends it to the database.
  
  @param parameterIndex the first parameter is 1, the second is 2, ...
  @param date           the parameter value
  @throws java.sql.SQLException if parameterIndex does not correspond to a parameter marker in the SQL statement;
  if a database access error occurs or this method is called on a closed
  <code>PreparedStatement</code>