select format(columnName, 'dddd') as WeekDay from tableName; -- SQL Server 17
SELECT CURDATE() - INTERVAL WEEKDAY(CURDATE()) DAY AS startweek;
SELECT DAYOFWEEK(NOW());
DateAdd(day, (-1* (DatePart(weekday, TIMESTAMP) % 7)) + 2, TIMESTAMP)
-- If first day is sunday in SQL
SELECT WEEKDAY(date);
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;
SELECT
DATEADD(DAY, 2 - DATEPART(WEEKDAY, GETDATE()), CAST(GETDATE() AS DATE)) [Week_Start_Date],
DATEADD(DAY, 8 - DATEPART(WEEKDAY, GETDATE()), CAST(GETDATE() AS DATE)) [Week_End_Date]