Sql Server Get Date Of Previous Sunday

[Solved] Sql Server Get Date Of Previous Sunday | Php - Code Explorer | yomemimo.com
Question : sql server get date of previous sunday

Answered by : powerful-petrel-5t1cnfpaa28c

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

Source : https://stackoverflow.com/questions/12422248/previous-monday-previous-sundays-date-based-on-todays-date | Last Update : Mon, 17 May 21

Answers related to sql server get date of previous sunday

Code Explorer Popular Question For Php