Mimer SQL Data Provider
GetDateTime Method

Mimer.Data.Client Namespace > MimerDataReader Class : GetDateTime Method
The zero-based column ordinal position.
Gets the value of the specified column as a System.DateTime object.
Public Overrides NotOverridable Function GetDateTime( _
   ByVal i As Integer _
) As Date
public override DateTime GetDateTime( 
   int i
public function GetDateTime( 
    i: Integer
): DateTime; override; 
public override function GetDateTime( 
   i : int
) : DateTime;
public: DateTime GetDateTime( 
   int i
) override 


The zero-based column ordinal position.

Return Value

The value of the column as a System.DateTime object.
The underlying SQL data type cannot be converted to System.DateTime.
The MimerDataReader is not positioned on a row.
The column ordinal is outside the valid range.
Supported SQL data types for the conversion are: DATE, TIME, TIMESTAMP, or a character data type that is formatted according to ANSI SQL date time formats (yyyy-mm-dd hh:mm:ss.fff).

Use the IsDBNull method to check for database null value before calling this method.


.NET Framework
Version 2.0 or later

See Also


MimerDataReader Class
MimerDataReader Members