Dear All
I would like you to help to insert and update datetime to sql database.
Please kindly help.
thanks
I would like you to help to insert and update datetime to sql database.
Please kindly help.
thanks
//c# code. //dt is the datetime field string update = "update test set dt=@dt where id=@id"; OleDbCommand cmd = new OleDbCommand(update, conn); DateTime dtme = DateTime.Now; cmd.Parameters.AddWithValue("@dt", dtme.ToString()); cmd.Parameters.AddWithValue("@id", Convert.ToInt32(TextBox2.Text));
Comment