Extracts the corresponding day of the the week, from 1 (Sunday) to 7 (Saturday), from date_as_number.