public abstract void setDate (int parameterIndex, Date x) throws SQLException

Sets the designated parameter to the given java.sql.Date value using the default time zone of the virtual machine that is running the application. The driver converts this to an SQL DATE value when it sends it to the database.

Parameters:
parameterIndex    the first parameter is 1, the second is 2, ...
x    the parameter value

Exceptions:
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 PreparedStatement