get week start date and end date in sql code example
Example 1: sql week commencing date
DATEADD(dd, -(DATEPART(dw, [Date])-1), [Date])
Example 2: get week day from date in sql
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;
DATEADD(dd, -(DATEPART(dw, [Date])-1), [Date])
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;