day of week sql code example
Example 1: datepart day of week
SELECT DATENAME(DW,'2007-10-30');
Example 2: get week day from date in sql
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;
SELECT DATENAME(DW,'2007-10-30');
SELECT TO_CHAR(your_table.date_colunm, 'DAY')
FROM your_table;