GETDATE() always includes current time, but often you need the current date starting from midnight.
DECLARE @TODAYMIDNIGHT AS DATE SET @TODAYMIDNIGHT = DATEADD(DAY, 0, DATEDIFF(DAY, 0, GETDATE())) SELECT @TODAYMIDNIGHT