Friday, October 11, 2019

DateTime.Parse might be the way to map something returned from a sproc to a DateTime or DateTime? in C#.

Think DataSet, DataTable, DataRow, etc.

if (!(dataRow[7] is DBNull)) asOf = DateTime.Parse(dataRow[7].ToString());

No comments:

Post a Comment