Installing
Minimal Requirements
- jQuery
- Moment.js
- 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
- Add
gem 'bootstrap4-datetime-picker-rails'
to yourGemfile
- Execute
bundle
- Add
//= require tempusdominus-bootstrap-4.js
to yourapplication.js
- Add
@import "tempusdominus-bootstrap-4.css"
to yourapplication.scss
Django
Python package for Django: Django Tempus Dominus
- Install via pip:
pip install django-tempus-dominus
- Widgets are provided for Date, DateTime, and Time.
- Full examples are available with Django Forms, Widgets, and Templates.
Angular Wrapper
Follow instructions at ngx-tempusdominus-bootstrap
Manual
<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"/>