Answers for "sql server get date of previous sunday"

SQL
0

sql server get date of previous sunday

--start of last week
SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 0)

--end of last week
SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 6)
Posted by: Guest on May-10-2021

Code answers related to "sql server get date of previous sunday"

Code answers related to "SQL"

Browse Popular Code Answers by Language