petre ricardo

petre ricardo

  • NA
  • 194
  • 0

How to convert Object type to DateTime type?

Nov 10 2009 3:05 AM

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)