Next weekday in a month
next_occurrenceFind the next date on or after start that is the first, second, third, fourth, fifth, or last given weekday of its month. Use for questions like the date of the last Friday of the month. weekday is Mon, Tue, Wed, Thu, Fri, Sat, or Sun. start defaults to today (UTC). Example: start 2026-10-23, weekday Fri, occurrence last is 2026-10-30, the last Friday of October. If that month's occurrence is before start, the answer is in a later month: the first Monday on or after 2026-10-23 is 2026-11-02. A fifth weekday that the month does not have is skipped. The result is that date, its month, iso_week, and us_week. The request is not repeated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | Search from this date, inclusive. Defaults to today (UTC). | |
| weekday | Yes | Mon, Tue, Wed, Thu, Fri, Sat, or Sun. | |
| occurrence | Yes | Which of that weekday in the month. last is the final one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| error | No | ||
| month | Yes | ||
| weeks | Yes | ISO week (Monday start; week 1 contains the year's first Thursday) and US week (Sunday start; 1 January is week 1 of that calendar year). | |
| candidates | No | ||
| alternatives | No | Other cities that matched the same name, after the best-ranked city was chosen. The order is the site search order: match, then priority, then population. |