Java.Sql.IPreparedStatement.SetDate Method
Sets the value of a specified parameter to a supplied java.sql.Date value, using a supplied Calendar to map the Date.

Syntax

[Android.Runtime.Register("setDate", "(ILjava/sql/Date;Ljava/util/Calendar;)V", "GetSetDate_ILjava_sql_Date_Ljava_util_Calendar_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetDate (int parameterIndex, Date theDate, Java.Util.Calendar cal)

See Also

Date
Java.Util.Calendar

Parameters

parameterIndex
the parameter number index, where the first parameter has index 1.
theDate
a java.sql.Date to which the parameter at parameterIndex is set.
cal
a Calendar to use to construct the SQL DATE value.

Exceptions

TypeReason
Java.Sql.SQLExceptionif a database error happens.

Remarks

Sets the value of a specified parameter to a supplied java.sql.Date value, using a supplied Calendar to map the Date. The Calendar allows the application to control the timezone used to compute the SQL DATE in the database - without the supplied Calendar, the driver uses the VM defaults. See "Be wary of the default locale".

[Android Documentation]

Requirements

Namespace: Java.Sql
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1