• Another way to do this that I learned on SSC, and just as easy is this:

    declare @DateOnly datetime

    set @DateOnly = dateadd(dd,datediff(dd, 0, getdate()), 0)

    😎