有两个dateTimePicker控件,选择了以后按时间段查询数据库中数据,where的条件应该怎么写有两个dateTimePick
有两个dateTimePicker控件,选择了以后按时间段查询数据库中数据,where的条件应该怎么写
有两个dateTimePicker控件,选择了以后按时间段查询数据库中数据,where的条件应该怎么写
[解决办法]
"where dt between '"+ dateTimePicker1.Value.ToShortDateString()+"' and '"+ dateTimePicker2.Value.ToShortDateString()+"'"
