Extensions.GetNullableDateTime Method (IDataRecord, Int32)

Gets the value of the specified column as a Nullable<T> of DateTime.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public static Nullable<DateTime> GetNullableDateTime(
	this IDataRecord record,
	int i
)

Parameters

record

Type: System.Data.IDataRecord
The data record.

i

Type: System.Int32
The zero-based column ordinal.

Return Value

Type: Nullable<DateTime>
The value of the column.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDataRecord. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

Extensions Class
DbExtensions Namespace

© Max Toro Q.