Scroll Top

Bootstrap DatePicker Example (Date Range Picker) To Use in 2024

bootstrap date picker example

Looking for the best Bootstrap Date Picker example for inspiration? Well then, this is the list where you will find the best Bootstrap datepicker example with source code that you can use in your upcoming project. Here we have gathered Bootstrap 5 datepicker examples that can inspire you to use it in your projects.

What is a Date picker?

A datepicker is a user interface element that enables users to interact with a website by selecting a particular date or time. Given that we see it almost everywhere, this is a standard component for every Internet user (especially in registration forms where we need to fill out the date of birth). XYZ

Simply put, the datepicker gives users the option of entering a date via text input or selecting a date from the calendar. On mobile devices and desktop text field dropdowns, date pickers can be inserted into dialogue boxes.

Why Use Bootstrap Date Pickers?

The Bootstrap date picker is basically a lightweight, responsive JavaScript library. It can be easily integrated into Bootstrap web applications. Furthermore, it is compatible with all major browsers and popular JavaScript frameworks.

Additionally, it features a user-friendly interface with a dropdown calendar. Moreover, it also supports multiple languages and offers extensive customization options to align with specific website designs.

While working with Bootstrap, it is recommended to use the best Bootstrap Admin Templates. Admin templates save you a lot of time and make app development easier.

The datepicker has many choices to control and modify dates according to requirements. The following options are below.

  • Start date: The start date is the earlier date. We can select either a date or value like (-5d), (-6m), or (-2y).
  • End date: The end date is the finish date which is selected as either date or value.
  • Language: The datepicker can change the other languages but the default language is English.
  • Format: The date format can be chosen as user-friendly and easy to understand.

Well, there are not many Bootstrap date pickers in the market. Although, the following are some of the most used bootstrap date pickers that you can use in your projects. This is especially important for apps where dates and times are used as core functions.

Also, check the Javascript Calaender Library as well.

The Best Bootstrap Date Range Picker

Following are some of the most popular Bootstrap 5 Date Pickers.

Bootstrap-datepicker By UX Solutions

Bootstrap DatePicker

Bootstrap-date picker provides a flexible datepicker widget in the Bootstrap style. It comes with Numerical input support, a Simple, clear, and intuitive, convenient display of a range of different colors and indicators like Selected day, Group of days & Today.

  • Type: Single, Range
  • Date patterns: All possible variants that exist on the Internet
  • Multilanguage Support: Yes


  • 12.6k GitStars & Growing
  • Day limit & Days disabled
  • Setting min/max view mode (decades/ centuries)
  • Today button


  • Yarn Installation:
$ [sudo] yarn global add grunt-cli
$ yarn install
  • NPM install:
$ [sudo] npm install --global grunt-cli
$ npm install

Vanillajs Datepicker – Bootstrap 5 Datepicker Example

Bootstrap DatePicker

This Bootstrap 5 Datepicker is a remake of bootstrap-datepicker for Bulma & other CSS frameworks.

This package is written from scratch as ECMAScript modules/Sass stylesheets to reproduce similar usability to the bootstrap-datepicker.

It can work either standalone or with a CSS framework (e.g. Bootstrap, Foundation), but it works best with Bulma. You can check the live demo for the Bootstrap here.


  • Date picker (input-dropdown, inline), date range picker
  • Keyboard operation support (navigation by arrow keys, editing on input field)
  • i18n support (locales, CSS-based text direction detection)
  • Highly customizable to adapt stylesheets for various CSS frameworks
  • Dependency free
  • Supports all modern browsers
  • Relatively lightweight — 35kB (minified, uncompressed, 11kB when gzipped)


  • Install the package using the npm
npm install --save-dev vanillajs-datepicker 
  • Input picker
create text input element
<input type="text" name="foo">

import the Datepicker module.
import Datepicker from 'path/to/node_modules/vanillajs-datepicker/js/Datepicker.js';

call Datepicker constructor with the input element and, optionally, config options.
const elem = document.querySelector('input[name="foo"]');
const datepicker = new Datepicker(elem, {
  // ...options


Bootstrap Daterange picker

Originally created for reports at Improvely, the Date Range Picker can be attached to any webpage element to pop up two calendars for selecting dates, times, or predefined ranges like “Last 30 Days”. Apart from that, it has a cool and modern design with a highlighted range of 2 colors. Furthermore, there are 3 indicators Today, Selected day, and Range of days which is really cool. The date patterns it offers are Yesterday, today, the last 30 days, last month, etc.

The month and day names are pulled from the moment.js library. You can change the language via that library or you can provide the text yourself via options/settings to this library. Features include limiting the selectable date range, localizable strings and date formats, a single date picker mode, a time picker, and predefined date ranges.


  • Range picker
  • Time input in digital format
  • Comes with numerical input support
  • Multilingual support
  • Single date picker mode
  • Predefined date ranges


  • To get started, include jQuery, Moment.js, and Date Range Picker’s files in your webpage:
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
  • Then attach a date range picker to whatever you want to trigger it:
  • You can customize Date Range Picker with options, and get notified when the user chooses new dates by providing a callback function.

We have used both Bootstrap Date Picker & Bootstrap Daterange Picker in our Bootstrap Admin Templates. For instance, check the Sneat Bootstrap 5 HTML Admin Template. It is one of the best bootstrap admin dashboards that you can use for any kind of web app. As the template is already using the mentioned date pickers, you will no longer need to install them separately. You can check the demo below.

Furthermore, this admin template is multipurpose & can be used to develop any kind of web app without any hassle. In addition, it comes with the following features:

  • Based on Bootstrap 5
  • Vertical & Horizontal layouts
  • Default, Bordered & Semi-dark themes
  • Light & Dark mode support
  • Internationalization/i18n
  • RTL Ready & many more.

Also, check the DotNet Dashboard Version.

Asp NET Dashboard Template

Tempus Dominus

Bootstrap Daterange picker

Tempus domain is a robust date/time picker that is now in its sixth version. This version is designed with modern browsers in mind and does not require jQuery. It is also compatible with Bootstrap 5 through the use of Popper2 for positioning.

Furthermore, this bootstrap time picker also provides, a wide array of options that enables developers to offer date/time selections to users such as simple pickers, birthdate selectors, appointment dates, etc.


  • Modern Browser Compatibility
  • Modular Design
  • No jQuery Required
  • Customizable and Extensible
  • Bootstrap Compatibility
  • Events and Hooks
  • Time Zone Support


  • npm installation
npm install @eonasdan/tempus-dominus

Now, let’s check some of the best bootstrap datepicker examples.

Bootstrap DatePicker Example

Following are the 10 Inspiring Best Bootstrap date picker Examples for your next application. You can use the source code of the following Bootstrap Date Picker Example in your Bootstrap projects.

Bootstrap 5 DatePickert Example

Bootstrap 5 Datepicker example

This Bootstrap 5 Date picker features a friendly, intuitive interface with seamless integration using Bootstrap 5. The date could either be selected from the elegant calendar widget or manually input. It is powered by jQuery functionality and a set of several tweaking options provided. CDN links are used for easy integration are Bootstrap 5 and jQuery.


  • Bootstrap 5 support
  • Interactive datepicker design
  • Calendar widget for easy date selection
  • Manual option for date selection
  • Customizable

Check the source code for further information

Simple Bootstrap datepicker example

This Bootstrap Datepicker example showcases a straightforward implementation of a date picker using the Bootstrap framework and the jQuery-based Bootstrap-datepicker plugin. To use the date picker, simply click on the input field. It will display a calendar interface to select a date. The selected date appears in the input field formatted appropriately.

For developers looking to implement or adapt this example in their projects, it serves as a practical demonstration of integrating a date picker in a web form using Bootstrap and jQuery.

You can check the source code for this bootstrap datepicker example for detailed information.

Key Features:

  • Compatibility with Bootstrap.
  • jQuery Datepicker Plugin
  • Comes with numerical input support
  • Clean design
  • Offers calendar, date selection & time selection option

Datepicker in Bootstrap 5

This Bootstrap 5 date picker is a great example of using typescript integration with Bootstrap. It represents a clean and interactive way to allow users to choose dates within a web app.

Furthermore, this example uses HTML, CSS, and JavaScript. Additionally, it is integrated with Bootstrap 5 to provide a responsive and aesthetically pleasing user interface.


  • Responsive design
  • Styling consistency
  • Customizable CSS

DateRangePicker Example

This Bootstrap 5 date range picker example demonstrates an interactive and user-friendly way to select a date range using JavaScript & Bootstrap 5 for the styling.

To use the above date picker, simply click on the input field, which will display a calendar. Then select a start date and the end date. The input fields are automatically updated with the selected dates, providing a clear and intuitive user experience. It also offers the following date ranges:

  • Last 7 Days
  • Last 30 Days
  • This Month
  • Previous month
  • Today/Yesterday, etc.

For developers, this example serves as a useful guide on how to implement a responsive and functional date range picker in a web application.

You can check the bootstrap datepicker example source code for further in-depth details.

Key Features:

  • Interactive date-range selection
  • Supports Bootstrap 5
  • Dynamic updates on Interface.
  • Offers day range indicators
  • Calendar, month/days selector

Use Case:

  • This implementation is especially useful for applications that require users to specify a start and end date, such as booking systems, event planners, or analytical tools that filter data based on date ranges.

Bootstrap 5 DatePicker Example

This is a simple bootstrap date picker example with a minimalist design. It has used Bootstrap’s styling with Javascript functionalities. This eventually improves user experience.

When you click on the input field or the associated button, the date picker will appear. After that, you can select a date which will displayed in the input field.

Check the Source Code of this bootstrap date range picker on codepen.

Key Features:

  • Simple bootstrap integration
  • Minimal design
  • Supports numerical input
  • Dates & month range selector
  • Minimalistic design
  • Calendar & date selector

Vanilla Bootstrap 5 Datepicker Example

This bootstrap datepicker example uses vanilla JavaScript. It includes examples of date inputs with floating labels, input groups, and a combination of both. Besides, the code uses the “vanillajs-datepicker” library alongside Bootstrap 5’s CSS and JS to create these UI elements.

Check the source code for this bootstrap daterange picker example.

Key Features:

  • Dynamic UI
  • Customizable
  • Calendar & date selectors
  • Can select months as well
  • Supports numerical input support

Also, check the Materio Free Bootstrap admin template.

Materio free bootstrap admin template

DatePicker Example In Bootstrap 5

This Bootstrap date picker example is based on Bootstrap 5 & jQuery. It is responsive and it adjusts to different screen sizes. Additionally, it also includes user interface elements like input groups and date selection icons.

Check the Source code on codepen.

Key Features:

  • Responsive Design
  • Input Groups
  • Customizable Date Formats
  • jQuery Integration
  • Popup Calendar
  • Numerical input support:
  • Calendar & date selector

Bootstrap Date Range Picker Example

This is a simple and clean date range picker that utilizes the popular Bootstrap framework. It relies on external libraries from CDNJS, which include jQuery, various Bootstrap CSS and JavaScript files, and Datepicker components.

The HTML code is minimal, containing a form with two read-only input fields for start and end dates. Due to Bootstrap, it is quite responsive and works well on all devices.

The CSS is organized and focuses on a green color scheme and padding, with the .container class having 120px padding at the top and bottom.

The JavaScript initializes the datepicker functionality upon document ready, ensuring the datepicker range component is correctly set up and interactive.

Check the source code of this bootstrap date picker example.

Key Features:

  • Minimal HTML structure with a datepicker range component
  • Appropriate padding in CSS
  • Responsive design
  • Clean & organized code structure
  • User-friendly & interactive
  • Simple design
  • Date range picker
  • Calendar, month/days selector

Bootstrap 5 Date Range Picker

This bootstrap datepicker example shows the setup of datepickers for start and end dates with configurations such as format, autoclose, language, and initial date settings. The JavaScript code initializes the datepickers on input fields within a form grouped by Bootstrap’s grid system.

Key Features:

  • Dual datepickers
  • Customizable Format
  • Autoclose Functionality
  • Language Options
  • Default Date Settings
  • Calendar, Year/month/days selector
  • Range of days, Month & Year Indicators

Best Practices for Using The Bootstrap Date Picker

When using Bootstrap date picker, it’s important to follow best practices to ensure that it functions properly and is easy to use. Here are a few best practices to keep in mind when using Bootstrap date picker:

  • Use a clear and concise label: When adding a date picker to your website, make sure to use a clear and concise label to make it easy for users to understand what they need to do.
  • Set the default date: Setting the default date will allow users to quickly select a date without having to manually select it.
  • Make the date picker visible: Make sure to make the date picker visible on all devices, including mobile devices.
  • Test the date picker: Before deploying your website, make sure to test the date picker to ensure it is working properly
  • Numerical input support. Sometimes it’s easier to type the necessary data from the keyboard than tap and scroll through years and months. For that purpose, some date pickers keep the date field active so users can type the value in it.

Real App Example using The Bootstrap DatePickers:

Bootstrap date picker has been used by many popular websites, including:

  • Airbnb: Airbnb uses Bootstrap 5 datepicker to allow users to select check-in and check-out dates when booking a stay.
  • TripAdvisor: TripAdvisor uses Bootstrap 5 datepicker to allow users to select a date for their upcoming trip
  • Amazon: Amazon uses Bootstrap 5 datepicker to allow users to select the delivery date for their orders.


Well, this was the collection of the best Bootstrap Date Picker Example that you can use in your upcoming projects.

We hope you became better at understanding Bootstrap 5 datepickers and found one that you like. Just don’t forget to spend time and define cases on how your users are going to pick dates/times – that helps a lot to find a necessary library for your app.

The usability of the date picker, as well as any other UI component, is a priority for any web page or web application. A bug in date pickers can disrupt a business meeting or a trip to warm countries due to bugs. Therefore, it is so convenient to use ready-made solutions. We have selected several ready-made solutions for Bootstrap 4 & 4. Read more about the advantages and disadvantages of Bootstrap date pickers and see a table that contains information about the type, time input, numerical input support, indicators, design, and complex data patterns.

Hope you like this collection. Don’t forget to share this with your colleagues.

Also, check the similar collections of Vue Date picker, and React Date Pickers as well.

Related Posts

Register to ThemeSelection 🚀

Sign in with

Already Have Account?

By Signin or Signup to ThemeSelection.com using social accounts or login/register form, You are agreeing to our Terms & Conditions and Privacy Policy
Reset Your Password 🔐

Enter your username/email address, we will send you reset password link on it. 🔓

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.