Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SADataReader class


GetDateTime method

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

Visual Basic

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

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

Return value

The value of the specified column.


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