首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

有两个dateTimePicker控件,选择了以后按时间段查询数据库中数据,where的条件应该如何写

2012-09-19 
有两个dateTimePicker控件,选择了以后按时间段查询数据库中数据,where的条件应该怎么写有两个dateTimePick

有两个dateTimePicker控件,选择了以后按时间段查询数据库中数据,where的条件应该怎么写
有两个dateTimePicker控件,选择了以后按时间段查询数据库中数据,where的条件应该怎么写

[解决办法]
"where dt between '"+ dateTimePicker1.Value.ToShortDateString()+"' and '"+ dateTimePicker2.Value.ToShortDateString()+"'"

热点排行