views_weekday
This module adds filters and arguments for Views to filter by Day of the Week in various ways.
Examples:
- List meetings that occur on a Wednesday.
- List concerts that occur on a Saturday or Sunday.
- List events that occurred on the current day of the week.
- List bookings that were made for the same day of the week as this booking.
It was created to enable views for a website which needed a list of bookings that were made on a specific weekday (e.g. "Wednesday") in previous weeks: "who has booked on this weekday in the past?".
This module allows a date to be used as an argument to the view, with the day of the week found from that date, and results filtered by a date field where that field has the same day of the week. So, for example: given an argument date that falls on a Monday, the view can display all entities with a date that also falls on a Monday.
Features
Use Filters to show:
- all items with dates that fall on the same day of the week as today (the day the view is displayed).
- items with dates that fall on a specified day, or days, of the week.
Use Views arguments to show:
Items with dates that fall on the same day of the week as a given date string argument. Any string recognised as a date by the PHP DateTime() class (https://www.php.net/manual/en/datetime.formats.php) Examples:
- "2025-09-18" (= "Thursday")
- "Tomorrow"
- "Wednesday"
Post-Installation
Enable the module, and make use of the "Weekday" views filters and views arguments. There will be one of each created for each date field defined for your site.
Similar projects
The Views Day of Week module (https://www.drupal.org/project/views_dow) offers some of this module's functionality but needs a special "List (text)" field - it doesn't work with date fields.