firstWeekDayOfMonth

Calculates the day of the week that the first day of the month falls on.

Syntax

firstWeekDayOfMonth(date)

Parameters

date

Specifies the date variable.

Returns

Returns a value representing the first day of the month of the date that is passed in: 1 = Sunday, 2 = Monday . . . 7 = Saturday.