This module provides form widgets for selecting a month and year, or just a year, which can streamline data entry for date-related content. It offers flexible ordering options, the ability to set optional year ranges, and smart handling for setting the day of the month.
Month Year Range
Provides form widgets for month/year date selection. Users only need to select month and year (or just year), making data entry more efficient for date-based content.
Features
- Month Year Range Widget: For date range fields
- Month Year Datetime Widget: For single datetime fields
- Flexible ordering: Year/Month, Month/Year, or Year only
- Optional year ranges: Restrict available years
- Smart day handling: Auto-set first or last day of month
Installation
Install as any other Drupal module.
Usage
- Enable the Month Year Range module
- Create a Date or Date Range field
- In Form Display Settings, select the appropriate widget:
- Month Year Range for date range fields
- Month Year datetime for single date fields
Configuration
- Date order: Year/Month, Month/Year, or Year only
- Year range: Optional limits (e.g.,
2020:2030,-5:+5) - Day options: First or last day of month
Ask your assistant about Month Year Range
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- datetime Drupal core
- datetime_range Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.