Compartilhar via


IResultSet.GetDate Method

Definition

Overloads

GetDate(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

GetDate(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

GetDate(Int32, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

GetDate(String, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

GetDate(Int32)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

[Android.Runtime.Register("getDate", "(I)Ljava/sql/Date;", "GetGetDate_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (int columnIndex);
[<Android.Runtime.Register("getDate", "(I)Ljava/sql/Date;", "GetGetDate_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : int -> Java.Sql.Date

Parameters

columnIndex
Int32

the first column is 1, the second is 2, ...

Returns

the column value; if the value is SQL NULL, the value returned is null

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

Java documentation for java.sql.ResultSet.getDate(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetDate(String)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

[Android.Runtime.Register("getDate", "(Ljava/lang/String;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (string? columnLabel);
[<Android.Runtime.Register("getDate", "(Ljava/lang/String;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : string -> Java.Sql.Date

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

Returns

the column value; if the value is SQL NULL, the value returned is null

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

Java documentation for java.sql.ResultSet.getDate(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetDate(Int32, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

[Android.Runtime.Register("getDate", "(ILjava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_ILjava_util_Calendar_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (int columnIndex, Java.Util.Calendar? cal);
[<Android.Runtime.Register("getDate", "(ILjava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_ILjava_util_Calendar_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : int * Java.Util.Calendar -> Java.Sql.Date

Parameters

columnIndex
Int32

the first column is 1, the second is 2, ...

cal
Calendar

the java.util.Calendar object to use in constructing the date

Returns

the column value as a java.sql.Date object; if the value is SQL NULL, the value returned is null in the Java programming language

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.

Added in 1.2.

Java documentation for java.sql.ResultSet.getDate(int, java.util.Calendar).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetDate(String, Calendar)

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.

[Android.Runtime.Register("getDate", "(Ljava/lang/String;Ljava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Ljava_util_Calendar_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.Date? GetDate (string? columnLabel, Java.Util.Calendar? cal);
[<Android.Runtime.Register("getDate", "(Ljava/lang/String;Ljava/util/Calendar;)Ljava/sql/Date;", "GetGetDate_Ljava_lang_String_Ljava_util_Calendar_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDate : string * Java.Util.Calendar -> Java.Sql.Date

Parameters

columnLabel
String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

cal
Calendar

the java.util.Calendar object to use in constructing the date

Returns

the column value as a java.sql.Date object; if the value is SQL NULL, the value returned is null in the Java programming language

Attributes

Exceptions

if a database error happens.

Remarks

Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.

Added in 1.2.

Java documentation for java.sql.ResultSet.getDate(java.lang.String, java.util.Calendar).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to