代码如下: 代码如下: string start = Request.Form.Get(“date2”).ToString(); //获取开始日期,此控件为html控件 string end = Request.Form.Get(“date3”).ToString(); //获取结束日期,此控件为html控件 string[] start_date = start.Split(‘-‘); //分离出开始日期的年、月、日 string[] end_date = end.Split(‘-‘); //分离出结束日期的年、月、日 DateTime dt1 = new DateTime(int.Pars