Filtering DATETIME Stamp by Todays Date

We are using SQL Reporting as reporting tool for us, and I am having an issue with one report.  It goes something like this.
Created Date is 04/11/2006 05:51:39 PM  I am trying to filter by the Month/Day/Year only it does not seem to work for me.

Can some help.  Oh, I tried changing the format to "d" which displays the 4/11/2006 but still does not work.  Any help would be great.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
when filtering for datetime, you have to filter with >= and < , because otherwise it will only match the exact date PLUS time.

something like:
Created_Date >= convert(datetime, '2006-04-11', 120) and Created_Date < convert(datetime, '2006-04-12', 120)

resp, for today:
Created_Date >= convert(datetime, convert(varchar(10), getdate(),120), 120) and Created_Date < convert(datetime, convert(varchar(10), dateadd(day, 1, getdate()),120), 120)

resp, for yesterday:
Created_Date >= convert(datetime, convert(varchar(10), dateadd(day, -1,getdate()),120), 120) and Created_Date < convert(datetime, convert(varchar(10), getdate(),120), 120)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.