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