System.Data Namespace IDataRecord Class
Returns the value of the specified column as a DateTime object.
[ VB ]
NotOverridable Public Function GetDateTime ( _
ByVal index As Integer _
) As DateTime
[ C# ]
public DateTime GetDateTime (
int index
);
[ C++ ]
public: __sealed DateTime GetDateTime (
int index
);
[ JScript ]
public function GetDateTime (
index : int
) : DateTime
- index
- The zero-based column ordinal.
The value of the column.
No conversions are performed, therefore the data retrieved must already be a DateTime object.
Call IsDBNull to check for null values before calling this method.
IDataRecord Members