I want to pick up some date 60 months ago.
I'm in a project that shows only files Sent to 60 months, but 60 months rather than 5 years, may not make any difference.
Any ideas? I tried to use datediff, but I'm not successful. I want to do this in SQL procedure
SELECT CAST(DATEPART(YY, GETDATE()) - 5 AS VARCHAR)
Note that the "5" before varchar refers to 60 months or 5 years; however, it wants 60 months. How could I get this date 60 months ago.