DB2 Version 9.7 for Linux, UNIX, and Windows

DB2DataReader.GetDB2DateTime method

Creates an instance of a DB2DateTime object from column data.

In Version 9.7 Fix Pack 6 and later fix packs, the DB2DataReader.GetDB2DateTime method is available for use only with the Informix® database server.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax

[Visual Basic]
Public Function GetDB2DateTime( _
   ByVal i As Integer _
) As IBM.Data.DB2Types.DB2DateTime
[C#]
public IBM.Data.DB2Types.DB2DateTime GetDB2DateTime (int i)
[C++]
public: 
IBM.Data.DB2Types.DB2DateTime GetDB2DateTime (int i
);
[JScript]
public function GetDB2DateTime(i : int
) : IBM.Data.DB2Types.DB2DateTime;

Parameters

i
The zero-based column ordinal.

Return value

A DB2DateTime object that represents the column value.

Exceptions

Exception type Condition
InvalidCastException The specified cast is not valid.
DB2Exception The conversion is invalid.
NotSupportedException The connected server is not an Informix database server.

Version information

Last update
This topic was last updated for: IBM® DB2® Version 9.7 Fix Pack 6.
.NET Framework version
Supported in: 2.0, 3.0, 3.5, and 4.0
IBM Data Server Client
Supported in: IBM DB2 Version 9.7 Fix Pack 6