Return the latest dayOfWeek in the given month and year.
Declared in <bdlt_dateutil.h>
static
Date
lastDayOfWeekInMonth(
int year,
int month,
DayOfWeek::Enum dayOfWeek);
Return the latest date in the specified month of the specified year that falls on the specified dayOfWeek. The behavior is undefined unless 1 <= year <= 9999 and 1 <= month <= 12.
latest matching date in the month
| Name | Description |
|---|---|
| year | calendar year |
| month | month of year in [1 .. 12] |
| dayOfWeek | desired day of week |