SyntaxFix
Write A Post
Hire A Developer
Questions
Another solution is the following:
ISNULL(NULLIF(DATEPART(dw,DateField)-1,0),7)