Drupal is a registered trademark of Dries Buytaert
drupal 11.3.8 Update released for Drupal core (11.3.8)! 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)! linkit 7.0.14 Minor update available for module linkit (7.0.14). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.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). editoria11y 3.0.1 Minor update available for module editoria11y (3.0.1). geofield_map 11.1.9 Minor update available for module geofield_map (11.1.9). domain 3.0.0 Major update available for module domain (3.0.0). ai 1.2.15 Minor update available for module ai (1.2.15). ai 1.3.4 Minor update available for module ai (1.3.4). leaflet 10.4.7 Minor update available for module leaflet (10.4.7).

bootstrap_datepicker

1,403 sites Security covered
View on drupal.org

Drupal date picker. Implements https://github.com/uxsolutions/bootstrap-datepicker as a field widget for a date field.

Supported options:

  • Date picker title
  • Date format
  • Language tag
  • RTL language
  • Show week days
  • Show today button
  • Week start
  • Enable auto close
  • Show clear button
  • Nearby year assumption
  • Container to be appended
  • Show calendar weeks
  • Toggle active date
  • Dates disabled
  • Disabled days in week
  • Highlighted days in week
  • Disable touch keyboard
  • Enabled when readonly
  • End date
  • Force date parcing
  • Immediate updates
  • Keep empty values
  • Keyboard navigation
  • Max view mode
  • Min view mode
  • Orientation
  • Start date
  • Start view
  • Highlight today
  • Update view date
  • Z-index offset

Module installation

Install Drupal module as usual. Visit https://www.drupal.org/docs/extending-drupal/installing-modules for further information.

Library installation

You can download the library or use composer.
Make sure the library is placed into: "/libraries/bootstrap-datepicker" and the file structure is as following: "/libraries/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"

To make it work with composer:

Add the following to your composer.json file into the repositories section:

 {
        "type": "composer",
        "url": "https://asset-packagist.org"
    }

And extend the 'installer-path' section:

"web/libraries/{$name}": [
        "type:drupal-library",
        "type:bower-asset",
        "type:npm-asset"
    ],

And add a new 'installer-types' section next to the 'installer-path' in the 'extra' section:
"installer-types": ["bower-asset", "npm-asset"],

Known problems

The widget only works for "date" fields at this moment. Data-time support or repeated dates support has to be added. Feel free to open a feature request with a patch.

Similar projects

There are many other date widget modules. All implementing an other javascript library.
We want to thank all other maintainers for their effort and the code they wrote. We based some of our features on code written by them.

Activity

Total releases
1
First release
Mar 2026
Latest release
1 month ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.1 Stable Mar 18, 2026