sql day of the week code example
Example 1: sql server convert date to weekday
SELECT DATENAME( DW , GETDATE() );
Example 2: get week day from date in sql
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;
SELECT DATENAME( DW , GETDATE() );
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;