select COUNT(*) from (表名) where (时间字段)between '2012-05-01 00:00:00' and '2012-05-31 23:59:59'
获取ASP.NET时间控件选中的时间
string qishi= Calendar1.SelectedDate.ToString();