Given a date or date-time value, WEEKDAY returns an integer from 1 (Monday) to 7 (Sunday) representing the day of the week for that date.
Date or date-time
Is the input date or date-time value.
WEEKDAY returns the day of the week for each birth date, where 1 represents Monday and 7 represents Sunday:
For 1993/03/27, the result is 6 (Saturday).