I have a Query where I get the WeekDay of a date but by default:
Sunday = 1
Moday = 2
etc.
Another solution is the following:
ISNULL(NULLIF(DATEPART(dw,DateField)-1,0),7)