setDate Method (int, java.sql.Date)

Download JDBC driver

Sets the designated parameter to the given date value.

Syntax

  
public final void setDate(int n,  
                          java.sql.Date x)  

Parameters

n

An int that indicates the parameter number.

x

A Date object.

Exceptions

SQLServerException

Remarks

This setDate method is specified by the setDate method in the java.sql.PreparedStatement interface.

See Also

setDate Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class