Click or drag to resize

DataRowExtensionGetDateTime Method

Extract a date/time value from the specified column. Note that DBNull and other non-date/time values are handled.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static DateTime GetDateTime(
	this DataRow row,
	Enum idx
)

Parameters

row
Type: System.DataDataRow
The data row from which to extract.
idx
Type: SystemEnum
The 0-based index of the column (which must exist in the row).

Return Value

Type: DateTime
The date/time value or DateTime.MinValue.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataRow. 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