Determines the day of the week of a date value and returns the number of the weekday.
Syntax
DayNumber ( date )
Argument Description
date The date value from which you want the number of the day of the week
Return value
Integer. Returns an integer (1-7) representing the day of the week of date. Sunday is day 1, Monday is day 2, and so on. If date is NULL, DayNumber returns NULL.