select padt, -- this is the date
datepart(wk,padt) ,-- this is the week number
CONVERT(varchar(50), (DATEADD(dd, @@DATEFIRST - DATEPART(dw, padt)-6, padt)), 101), -- this returns the first day of the week
CONVERT(varchar(50), (DATEADD(dd, @@DATEFIRST - DATEPART(dw, padt) , padt)), 101) -- this returns the last day of the week
from pa11801
group by padt order by 1