GetDateTime method

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

Syntax
Visual Basic

Public Overrides Function GetDateTime( _
   ByVal ordinal As Integer _
) As Date
C#

public override DateTime GetDateTime(
   int ordinal
);
Parameters
  • ordinal   The zero-based column ordinal.

Return value

The value of the specified column.

Remarks

No conversions are performed, so the data retrieved must already be a DateTime object.

Call the SADataReader.IsDBNull method to check for null values before calling this method.

See also