select * from [X] WHERE DATEDIFF(dd,[datecol],'3/11/2010') = 0
There are many features with a dated function,
DATEADD(DAY,DATEDIFF(DAY,0,[datecol]),0) is another way to remove the temporary part from a column if you need this data for other processing. We use this if we want to group elements that occur during the day, or any other uses if we need to group elements that occur within hours or after several hours.
source share