how to extract day of the week from date in sql code example Example: extract weekday from date in sql SELECT WEEKDAY(date);