sqlDateSourse读取Calendar控件的值 如何让sqldatesourse的where语句能够读到calendar选定日期的年和月的值? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from table where getdate() between timeStart and timeEnd--或者select * from table where getdate() >=timeStart and getdate()<=timeEnd 就是用Calendar选定日期后,在sqldatesourse控件中要用where语句根据选择日期的年和月从数据库中select出符合条件的内容。 select * from table where DATEPART(yy,Calendar1.SelectedDate)//根据年select * from table where DATEPART(mm,Calendar1.SelectedDate)//根据月貌似Calendar1.SelectedDate可以直接获取 this.Calendar1.SelectedDate.Year this.Calendar1.SelectedDate.Month SendMessage()的问题...顶者有分 高手出招:windows server 2008上rdlc报表出现异常! 关于动态生成 实现新页面 的问题,求解 请问高手如何把word文档的内容读取后导入到oracle数据库中 超过百万的数据用什么方法能掉高翻页速度呢?(急!) 怎么动态加载一个Label控件呀 Asp.net中怎样将文件保存到数据中 回复评论的Label隐藏问题 json时间转换问题 请问MVC3 LINQ TO EF 一次性删除表里多行记录怎么做呀? ASP.net,随机验证码保存数据库,并加过期时间问题。 Response.Redirect()不跳转
--或者
select * from table where getdate() >=timeStart and getdate()<=timeEnd
select * from table where DATEPART(mm,Calendar1.SelectedDate)//根据月
貌似Calendar1.SelectedDate可以直接获取
this.Calendar1.SelectedDate.Year
this.Calendar1.SelectedDate.Month