Mike Jonson

Mike Jonson

  • NA
  • 239
  • 193.6k

Error Conversion failed when converting date and/or time from character string

Jul 18 2011 5:40 AM
Every time this error problem with dt.

strSql = string.Format("Insert InTo MoneyEntries (Amount, EntryDate, Description, IDCategory)" +
"Values ('{0}', '{1}', '{2}', '{3}')", am, dt, desc, int.Parse(rdr[0].ToString()));

In my table Entrydate have type easy date. Please help

Answers (11)