get weekday from date excel code example Example: extract weekday from date in sql SELECT WEEKDAY(date);