determine weekday from DATE SQL code example
Example 1: how to get weekday from old date in sql
select format(columnName, 'dddd') as WeekDay from tableName; -- SQL Server 17
Example 2: extract weekday from date in sql
SELECT WEEKDAY(date);
select format(columnName, 'dddd') as WeekDay from tableName; -- SQL Server 17
SELECT WEEKDAY(date);