Click or drag to resize
DataHelperGetDateTimeValue Method (DataRow, String, DateTime)
Gets the DateTime variable from given DataRow.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static DateTime GetDateTimeValue(
	DataRow dr,
	string columnName,
	DateTime defaultValue = null
)

Parameters

dr
Type: System.DataDataRow
DataRow with the data
columnName
Type: SystemString
Column name
defaultValue (Optional)
Type: SystemDateTime
Default value

Return Value

Type: DateTime
See Also