By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
SELECT
DATEADD(yy, DATEDIFF(yy, 0, DATEADD(yy, -3, GETDATE())), 0)
(No column name) |
---|
2022-01-01 00:00:00.000 |
(No column name) |
---|
2022-01-01 00:00:00.000 |