This documentation is archived and is not being maintained.

OdbcDataReader.GetDate Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets the value of the specified column as a DateTime object.

[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

The value of the specified column as a DateTime object.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OdbcDataReader Class | OdbcDataReader Members | System.Data.Odbc Namespace

Show: