dateFromNthWeekdayOfMonth

Determine the date in the month, 1..31, of the nth weekday.

int
dateFromNthWeekdayOfMonth
(
int year
,
int month
,,
int n
)

Parameters

year int

year

month int

month, 1..12

weekday int

day of week 0..6 representing Sunday..Saturday

n int

nth occurrence of that weekday in the month, 1..5, where 5 also means "the last occurrence in the month"

Return Value

Type: int

the date in the month, 1..31, of the nth weekday

Suggestion Box / Bug Report