如何实现通过DateTimePicker选择时间段查询对应的数据

2024-12-30 08:35:20
推荐回答(1个)
回答1:

"where dt between '"+ datetimepicker1.value.toshortdatestring()+"' and '"+ datetimepicker2.value.toshortdatestring()+"'"