Calendar for a date range
get_calendarLists Moodle calendar events between two dates, including course names and dates, so students can see what is scheduled in any past or future period.
Instructions
Answers 'what is on my calendar between these dates?' Lists up to 50 calendar events from start_date to end_date, both included, oldest first, with the course name and date. Unlike get_upcoming_due_dates and get_overdue it works for any dates, past or future, and also shows events that need no action. Input: start_date and end_date as YYYY-MM-DD, in the time zone of the computer running the server; course_ids, an optional array of course IDs to limit the list. The window can span up to 366 days. Ask: 'What is due the week of Dec 1?'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | Last day to show, as YYYY-MM-DD. Events on this day are included. | |
| course_ids | No | ||
| start_date | Yes | First day to show, as YYYY-MM-DD. |