SELECT dateadd(ms,0,DATEADD(dd, DATEDIFF(dd,0,getdate()), 0))
SELECT dateadd(ms,-3,DATEADD(dd, DATEDIFF(dd,-1,getdate()), 0))
SELECT DATEADD(mm, DATEDIFF(mm,0,getdate()), 0)
SELECT dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,getdate())+1, 0))