Upcoming and past events
calendarSort corporate dates into what is still ahead and what has already passed.
★ TWO DATES, NOT ONE. What is "upcoming" is decided by the date the event HAPPENS; `as_of`
filters on the date it was ANNOUNCED. An ex-dividend declared on 2026-08-01 for 2026-09-15 is
both already known and still ahead on 2026-08-10. Collapsing the two fields either hides every
future date or reports last month's ex-dividend as though it were coming.
★ ELAPSED DATES ARE SEPARATED, NOT DISCARDED. They come back under `past` — the previous
ex-dividend is useful context for a question about the next one — but they can never appear
under `upcoming`.
★ NOT `search_filings` AND NOT `query_dataset`. Those retrieve disclosures and rows; this one
only arranges dated corporate events on a timeline relative to now.
⚠️ A scheduled date is a schedule, not a promise; companies move them.
Args: rows (dated events), today (YYYY-MM-DD), optional as_of.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| as_of | No | ||
| today | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||