今天转换datatable 属性值的时候出错:
DataTable dt_1 = new DataTable();
dt_1 = new BLL.auction().GetList_pmh(top, _where, "").Tables[0];
DateTime d = DateTime.Parse(dt_1["preview_time1"].ToString());
更正后如下:
DateTime d = DateTime.Parse(dt_1.Rows[0]["preview_time1"].ToString());
时间: 2024-10-24 15:03:35