how to create two variables with a date for the procedure, regardless of when it starts: 1st variable - 8:00 of the last Monday 2nd variable - 8:00 of the last but one Monday (i.e. the difference between the variables is a week)
I have tried this, but it shows time 00:00
SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 0)
SELECT DATEADD(wk, DATEDIFF(wk, 6, GETDATE()), 7)