Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

drw

3 sites No security coverage
View on drupal.org

Date Range Widget (drw) provides a simple date field widget with min/max validation and support for relative dates like "today" or "-18 years".

Perfect for age verification, event registration, appointment booking, and any form requiring date restrictions.

Key Features:

  • Relative dates: Use -18 years, today, +90 days, etc.
  • Easy configuration: Set restrictions directly in field widget settings: no code needed
  • Custom error messages: Optional personalized validation messages with dynamic placeholders

Common Use Cases:

  • Age verification: Min: -18 years
  • Future dates only: Min: today
  • Event period: Min: 2024-01-01, Max: 2024-12-31
  • Booking window: Min: today, Max: +90 days

Quick Setup:

  1. Go to Manage form display for your content type
  2. Change date field widget to "Date Range Widget"
  3. Click ⚙️ to configure:
    • Set min/max dates (absolute or relative)
    • Check "Enable custom error messages" to personalize validation feedback
    • Use @min and @max placeholders in custom messages

Lightweight & Dependency-Free: No external dependencies, no JavaScript!

Activity

Total releases
8
First release
Nov 2025
Latest release
2 months ago
Release cadence
11 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.1.3 Stable Jan 31, 2026
1.1.2 Stable Dec 4, 2025
1.1.1 Stable Nov 24, 2025
1.1.0 Stable Nov 23, 2025
1.0.3 Stable Nov 19, 2025
1.0.2 Stable Nov 18, 2025
1.0.1 Stable Nov 17, 2025
1.0.0 Stable Nov 15, 2025