get week number from date Tsql code example
Example 1: sql server week number
datepart(wk, DateToParse)
Example 2: datepart day of week
SELECT DATENAME(DW,'2007-10-30');
datepart(wk, DateToParse)
SELECT DATENAME(DW,'2007-10-30');