Quantcast
Channel: Answers for "sql for day of the week in the future"
Viewing all articles
Browse latest Browse all 8

Answer by DannyC

$
0
0
I know this is very late, but I was looking for the same answer today and found this: select getdate(),dateadd(week, datediff(week, 0, getdate()), 9) I am including GetDate() in the results only to prove that if GetDate() changes, the returned value will always be next Wednesday (in this example). Change the 9 to an 8 for Tuesday.

Viewing all articles
Browse latest Browse all 8

Trending Articles