How do I insert a datetime value into a SQL database table where the type of the column is datetime?
Convert the existing DateTime object to a string with single quotes around it. I don't think it really matters what format it is, as long as it is valid.
Something like this:
string data = "'" + date.ToString() = "'";
Optionally you can create a new format and pass it as a parameter to data.ToString(format);