private void getDate(string user) { BrainTrain.BLL.bt_gantong_record rBll = new BrainTrain.BLL.bt_gantong_record(); DataTable dt = rBll.GetDataTable("name=\"" + user + "\" and ui=" + u_i + " group by Date(time) order by time desc"); jsonDates = "["; for (int i = 0; i < dt.Rows.Count; i++) { if (i > 0) { jsonDates += ","; } string date = Convert.ToDateTime(dt.Rows[i]["time"].ToString()).ToString("yyyy-MM-dd"); jsonDates += "\"" + date + "\""; } jsonDates += "]"; }