DataHelperGetDateTimeValue Method (DataRow, String, DateTime) |
Gets the DateTime variable from given DataRow.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax 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:
DateTimeSee Also