DB2ResultSet.GetDate Method
Gets the value of the specified column as a DateTime object.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Function GetDate( _
ByVal i As Integer _
) As DateTime
[C#]
public DateTime GetDate(
int i
);
[C++]
public: DateTime GetDate(
int i
);
[JScript]
public function GetDate(
i : int
) : DateTime;
Parameters
- i
- The zero-based column ordinal.
Return value
A Date object representing the column value.
Exceptions
Exception type | Condition |
---|---|
DB2Exception | Invalid conversion. |
Remarks
No conversions are performed. The data to be retrieved must be of DB2®Type.Date.
The
following table describes the mapping between the return object data
type and the data server data type.
DB2Type Data Type | Db2® Data Type | Informix® Data Type |
---|---|---|
Date | DATE | DATETIME (date precision) |