Sample code snippet:
command.Parameters.Add(new MySqlParameter("@Created_Date", MySqlDbType.Datetime)).Value = DateTime.Now;
Declaration in Stored Procedure "Created_Date DATETIME"
error code: Input string was not in a correct format.
Sample code snippet:
command.Parameters.Add(new MySqlParameter("@Created_Date", MySqlDbType.Datetime)).Value = DateTime.Now;
Declaration in Stored Procedure "Created_Date DATETIME"
error code: Input string was not in a correct format.
Try this:
command.Parameters.Add(new MySqlParameter("@Created_Date", MySqlDbType.Timestamp)).Value = DateTime.Now;