Can someone help me with creating a dateadd statment that will return today's date three ago and at 11:59 PM
12/19/2002 23:59:59 is the final result
I have the syntax for the year part but not to get it to 23:59:59
12/19/2002 23:59:59 is the final result
I have the syntax for the year part but not to get it to 23:59:59
Code:
SELECT DateAdd(yyyy, -3, CONVERT(smalldatetime, CONVERT(char(10), GETDATE(), 103), 103))