Parameters
- dateValue
- Required. Date value for which you want to determine the day of the week.
- dayOfWeek
- Optional. A value chosen from the FirstDayOfWeek enumeration that specifies the first day of the week. If not specified, FirstDayOfWeek.Sunday is used.
Return Value
Returns an Integer value containing a number representing the day of the week.