DayOfWeek() function returns the day of the week. Monday is day 1 and Sunday is day 7.
A number that represents the day of a week where 1 is Monday, 2 is Tuesday etc.
date– a date
DayOfWeek(Date(2017, 4, 12)) /* Returns 3 (Wednesday) */