I am inserting a date into my database, the value which comes from:
s.theDate = Convert.ToDateTime(\"06-13-2012\");
and I get the error, \"
Just use ParseExact as already suggested or populate Convert.ToDateTime with the second parameter:
ParseExact
Convert.ToDateTime
Convert.ToDateTime("06-13-2012", new DateTimeFormatInfo{FullDateTimePattern = "MM-dd-yyyy"});