public DateTime?TimeValue(string colName) { object obj = GetValue(colName); if (obj != null && obj.GetType().Name == "TimeSpan") { return(Utility.ToDateTime(GetValue(colName))); } else { return(null); } }