I am trying to do a query between 2 dates. I would like to do it without having to worry about the time. When a user enters the 2 dates they want to search on, there is no selection for time. This means that the dates that they enter default to 12:00 AM.

The dates in the table do have times though. I just would like to ignore the times all together so the search brings back any records form said date range.

Here is my SQL:

TheDate BETWEEN @EnteredBeginDate AND @EnteredEndDate

So when a user does a range search between 8/6/2009 AND 9/9/2009 I want to return the records:

8/6/2009 11:33:02 AM
8/6/2009 11:39:17 AM
9/9/2009 8:21:30 AM

What's happening now is I only get back:

8/6/2009 11:33:02 AM
8/6/2009 11:39:17 AM

Can someone please recommend the best way to do this in SQL? I know how to do it in C#.

Edit
Report