I\'m trying to get the most recent Friday in SQL Server 2008.
I have this. It gets the beginning of the week (monday) then subtracts 3 days to get Friday.
This is what I got I hope it helps
DECLARE @UserDate DateTime SET @UserDate = '2020-09-03' SELECT DATEADD(day, (6 - datepart(weekday, @UserDate)) , @UserDate)