im importing text from a csv file to a access database
i create my parameter
then i convert the read value to date time
it stops by the second piece of code i put in saying
"String was not recognized as a valid DateTime"
What am i doing wrong?
i create my parameter
Code:
OleDbParameter Param7 = new OleDbParameter("@Param7", OleDbType.DBTimeStamp);
cmd.Parameters.Add(Param7);
Code:
cmd.Parameters["@Param7"].Value = Convert.ToDateTime(columns[6].Replace("\"", ""));
"String was not recognized as a valid DateTime"
What am i doing wrong?
Comment