Mimer SQL Data Provider help
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.
Syntax
'Declaration
 
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 

Parameters

i
The zero-based column ordinal position.

Return Value

The value of the column as a System.DateTime object.
Exceptions
ExceptionDescription
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.
Remarks
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.

Requirements

.NET Framework
Version 2.0 or later

See Also

Reference

MimerDataReader Class
MimerDataReader Members