0

我想在两次之间搜索。我正在使用这段代码:

SqlDataAdapter adap;
DataSet ds = new DataSet();
SqlConnection con = new SqlConnection("Data Source=(local);Initial Catalog=test;Integrated Security=True;MultipleActiveResultSets=True");
con.Open();
SqlCommand cmd = new SqlCommand("SELECT t5 FROM student WHERE t5 BETWEEN '" + label14.Text + "' AND '" + label15.Text + "'", con);
adap = new SqlDataAdapter("SELECT t5 FROM student WHERE t5 BETWEEN  '" + label14.Text + "' AND '" + label15.Text + "'", con);

adap.Fill(ds, "t1");
Datagv1.DataSource = ds.Tables["t1"];

我在数据网格中得到结果,但我的问题是数据网格中的日期时间未显示在波斯日历中。

4

0 回答 0