请大家帮个忙吧,时间写入ACCESS问题!
s98 2004-10-01 10:56:15 string tableno = Form5.curtabno;
DataRow curRow = this.dataSet12.Tables["tabno"].Rows.Find(tableno);
curRow["status"] = "已点餐";
curRow["starttime"] = DateTime.Now.ToString(); //写入当前系统时间
this.oleDbDataAdapter3.Update(this.dataSet12.bustemp);
this.oleDbDataAdapter4.Update(this.dataSet12.tabno);
MessageBox.Show(curRow["starttime"].ToString()); //在这里显示的东西都是对的2004-10-01 22:48:20 数据库里定义starttime的数据类型是日期/时间,格式为常规格式2004-10-01 22:48:20
这样的
this.Close();
现在的问题是,怎么写都只写日期2004-10-01后面的时间无法写入,50不多也不少希望大家帮忙.