Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
That reminds me, you can use @@DATEFIRST to determine which day your instance uses as the starting day of the week,
or use SET DATEFIRST to modify it as you wish. (take care that this changes the setting for the sqlserver, not just for your query!)
SELECT STARTDATE = CONVERT(date,GETDATE()-DATEPART(dw, GETDATE())-6),
ENDDATE = CONVERT(date,GETDATE()-DATEPART(dw, GETDATE()))
select dateadd(d,-(datepart(dw,getdate()-(7-@@datefirst))+6),getdate()) [StartDate]
, dateadd(d,-(datepart(dw,getdate()-(7-@@datefirst)) ),getdate()) [EndDate]