11
Answers

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

Mike Jonson

Mike Jonson

13y
11.6k
1
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)