Here is the issue I am having: I have a large query that needs to compare datetimes in the where clause to see if two dates are on the same day. My current solution, which suck
this will remove time component from a date for you:
select dateadd(d, datediff(d, 0, current_timestamp), 0)