3
Answers

How to convert Object type to DateTime type?

petre ricardo

petre ricardo

15y
3.8k
1

hi,
I have DataRow that has a cell of type datetime, i've tried to convert the value to DateTime by (DateTime)row[7] and
Convert.ToDateTime(row[7]) but none of that works, why?
TY
 
Answers (3)