sql today at midnight code example Example: sql today at midnight SELECT DATEADD(d, 0, DATEDIFF(d, 0, GETDATE()))