Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - M-Business Anywhere Programming » UltraLite for M-Business Anywhere API Reference » PreparedStatement class

 setBytesParameter method Next Page

setDateParameter method


Sets the value for the specified SQLType.DATE type parameter using a date.

Syntax

setDateParameter( UInt16 parameterID, Date value )

Parameters
Remarks

Only the year, month, and day fields of the Date object are relevant.

Example

The following statement sets a value for the first parameter to 2004/09/27:

stmt.setDateParameter( 
    1, new Date( 2004,9,27,0,0,0,0 )
);