Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Charts 5.2.4 Minor update available for module charts (5.2.4). Release: Tagify 2.0.3 Minor update available for module tagify (2.0.3). Release: Tagify 1.2.54 Minor update available for module tagify (1.2.54). Release: ECA: Event - Condition - Action 3.1.8 Minor update available for module eca (3.1.8). Release: GoogleTag Manager 2.0.5 Minor update available for module gtm (2.0.5). Release: GoogleTag Manager 2.0.4 Minor update available for module gtm (2.0.4). Release: X-Frame-Options Allow-From webvisor.com 2.0.4 Minor update available for module xframe_allow_webvisor (2.0.4). Release: Commerce ML Starter 2.0.5 Minor update available for module cmlstarter (2.0.5). Usage Milestone: Easy Email Module easy_email crossed 10,000 active installs. Security Coverage: Menu Link By Default Module menu_link_by_default now has official Drupal security advisory coverage.

Bootstrap Datepicker

1,366 sites Security covered Drupal 9–11

Part of the Bootstrap ecosystem · 36 projects

View on drupal.org

This module provides a date picker field widget for Drupal, integrating the popular bootstrap-datepicker JavaScript library. It allows users to select dates with various customizable options for formatting, language, and calendar appearance.

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.

Depends on

Dependencies of the latest stable release

  • datetime Drupal core
  • datetime_range Drupal core
  • system Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Mar 2026
Latest release
5 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.0.1 Stable 9–11 Mar 18, 2026