I would like to retrieve a date minus 1 year, but without time notation.
The following query
SELECT DATEADD(year, -1, GETDATE())
Output:
2015-03-30 10:48:04.220
What I want is 2015-03-30 00:00:00:000
Similar to:
(DATEADD(dd, DATEDIFF(dd, 0, GETDATE()), 0))
Which results in: 2016-03-30 00:00:00.000
What is the correct or easiest way to do this?