The Weekday command returns the day of a given DateTime variant as a 1 to 7 digit. Sunday being the first day of the week and Saturday being the seventh.
Syntax
WEEKDAY ( dateTime )