3
Reply

How to convert Object type to DateTime type?

petre ricardo

petre ricardo

Nov 10 2009 3:05 AM
3.4k

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)