I read/update data from MS Access using C#. My code is:
public static void UpdateLastLogin(int userid, DateTime logintime) ///logintime = DateTime.Now {
I solved this using the following code
OleDbCommand cmd = new OleDbCommand(qry, cnn); cmd.Parameters.Add("datenow", OleDbType.Date); cmd.Parameters["datenow"].Value = DateTime.Now;