摘要:
我在使用MySql5.1的数据库中,使用winForm的DataGridView要把数据库中全称DateTime格式,转换成Date格式,就是把日期时间转换成日期,不要时间。如‘2013-07-08 13:26:59’变成‘2013-07-08’,在DataColumn.Expression这么写countRoomNum.Columns.Add("TempBusinessDate", typeof(string),“Convert(businessdate,'System.String')”,结果在列TempBusinessDate中显示的数据是空的,我怎么 阅读全文