Mimer SQL Data Provider
GetDateOnly Method




Mimer.Data.Client Namespace > MimerDataReader Class : GetDateOnly Method
The zero-based column ordinal position.
Gets the value of the specified column as a System.DateOnly object.
Syntax
'Declaration
 
Public Function GetDateOnly( _
   ByVal i As Integer _
) As DateOnly
public DateOnly GetDateOnly( 
   int i
)
public function GetDateOnly( 
    i: Integer
): DateOnly; 
public function GetDateOnly( 
   i : int
) : DateOnly;
public: DateOnly GetDateOnly( 
   int i
) 

Parameters

i
The zero-based column ordinal position.

Return Value

The value of the column as a System.DateOnly object.
Exceptions
ExceptionDescription
The underlying SQL data type cannot be converted to System.DateOnly.
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, TIMESTAMP, or a character data type that is formatted according to ANSI SQL date time formats (yyyy-mm-dd).

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

Requirements

.NET
Version 6.0 or later

See Also

Reference

MimerDataReader Class
MimerDataReader Members