|
Question : DatePart - Week - Monday
|
|
Hi Experts,
I just got an answer to this question for Access: http://www.experts-exchange.com/Databases/MS_Access/Q_21864479.html
When I try to apply it to a SQL pass-through query, it doesn't work. DatePart('ww',[ProdDate],2,1)
When I tried: DATEPART(ww, ProdDate) I get weeks that begin on Sunday.
Please advise. Scotto13
|
|
Answer : DatePart - Week - Monday
|
|
SET DATEFIRST 1 select DATEPART(ww, ProdDate) SET DATEFIRST 7
|
|
|
|