asp.net.ph

SqlDataReader.GetSqlDateTime Method

System.Data.SqlClient Namespace   SqlDataReader Class


Returns the SqlDateTime value of the specified column.

[ VB ]
NotOverridable Public Function GetSqlDateTime ( _
   ByVal index As Integer _
) As SqlDateTime

[ C# ]
public SqlDateTime GetSqlDateTime (
   int index
);

[ C++ ]
public: __sealed SqlDateTime GetSqlDateTime (
   int index
);

[ JScript ]
public function GetSqlDateTime (
   index : int
) : SqlDateTime

Parameters

index
The zero-based column ordinal.

Return Value

An SqlDateTime.

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.

See Also

SqlDataReader Members Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note