Installing

Minimal Requirements

  1. jQuery
  2. Moment.js
  3. Locales: Moment's locale files are here

Installation Guides

CDN

<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.38.0/js/tempusdominus-bootstrap-4.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.38.0/css/tempusdominus-bootstrap-4.min.css" crossorigin="anonymous" />
</head>

Package Managers

Rails

Rails 5.1 Support - Bootstrap 4 Datetime Picker Rails

  1. Add gem 'bootstrap4-datetime-picker-rails' to your Gemfile
  2. Execute bundle
  3. Add //= require tempusdominus-bootstrap-4.js to your application.js
  4. Add @import "tempusdominus-bootstrap-4.css" to your application.scss

Django

Python package for Django: Django Tempus Dominus

  1. Install via pip: pip install django-tempus-dominus
  2. Widgets are provided for Date, DateTime, and Time.
  3. Full examples are available with Django Forms, Widgets, and Templates.

Angular Wrapper

Follow instructions at ngx-tempusdominus-bootstrap

Manual

  1. Acquire jQuery
  2. Acquire Moment.js
  3. Acquire
<script type="text/javascript" src="/path/to/jquery.js"></script>
<script type="text/javascript" src="/path/to/moment.js"></script>
<script type="text/javascript" src="/path/to/tempusdominus-bootstrap-4.min.js"></script>
<link rel="stylesheet" href="/path/to/tempusdominus-bootstrap-4.min.css"/>