Questions tagged [bootstrap-datetimepicker]

bootstrap-datetimepicker is a datepicker widget by tarruda that uses Twitter's bootstrap library. For a regular datepicker, see the [bootstrap-datepicker] tag. For the Eonasdan datetimepicker please use the [eonasdan-datetimepicker] tag.

bootstrap-datetimepicker is a datepicker widget that uses Twitter's bootstrap library. It provides a calendar popup for selecting dates and times when users click on input elements.

Tarruda's no longer being maintained:

The new repo is:

And here is a web site with manuals and demos:

Stack Snippet Starter Pack:

<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/css/bootstrap.css" rel="stylesheet"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.css" rel="stylesheet"/>

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.1/moment.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script>

<div class='input-group date' id='datetimepicker1'>
  <input type='text' class="form-control" />
  <span class="input-group-addon">
    <span class="glyphicon glyphicon-calendar"></span>
  </span>
</div>
$(function () {
  $('#datetimepicker1').datetimepicker();
});
754 questions
44
votes
4 answers

Bootstrap 3 datetimepicker events not firing up

I am using Bootstrap 3 DateTimePicker and I am trying example 8 (Linked datetimepicker). $('#dpStart').datetimepicker({ pickDate: true, //en/disables the date picker pickTime: false, format: "DD-MM-YYYY", useMinutes: false, //en/disables…
39
votes
3 answers

jQuery bootstrap-datetimepicker change event

I am using bootstrap-datetimepicker plugin from Jonathan Peterson on my project. I'm having a problem with change event : If I define event like this : $('#Release').on('dp.change', function(e){ console.log(e.date()); }) I get the error :…
user5198552
  • 531
  • 1
  • 4
  • 7
24
votes
4 answers

datetimepicker component not in right place

I want to use datetimepicker from bootstrap so I follow manual installing guides in this site bootstrap-datetimepicker but I've got following error: Uncaught Error: datetimepicker component should be placed within a relative positioned…
dede
  • 823
  • 4
  • 13
  • 24
20
votes
5 answers

How to detect bootstrap datetimepicker change events within angular2

I am using the bootstrap datetimepicker in angular 2 https://eonasdan.github.io/bootstrap-datetimepicker/ In my template i have:
Sireini
  • 4,142
  • 12
  • 52
  • 91
20
votes
3 answers

Set minDate to Today in Bootstrap DateTimePicker

I'm using Bootstrap DateTime Picker (http://eonasdan.github.io/bootstrap-datetimepicker/) and I've found the basic option to set a minDate; but, I can't get it to set to today to save my life. I've tried things like Date(); but, nothing working. …
Giantsfan542
  • 271
  • 1
  • 4
  • 8
18
votes
5 answers

g.size() is not a function - Jquery Error

I have been trying to use bootstrap datetimepicker and have all the components on my scripts like Moment JS, bootstrap-date-time js, and bootstrap js but I am getting g.size() is not a function error. I am trying to run the following…
13
votes
3 answers

bootstrap-datetimepicker for bootstrap 4

I want to use bootstrap-datetimepicker with bootstrap 4 but I have some problems. For this purpose I changed something like: pull-right to float-right table-condensed to table-sm glyphicons to fontawesome but it did not work :( Demo Can anyone…
11
votes
3 answers

Bootstrap-Datetimepicker not working with the jQuery 3

Bootstrap-datetimepicker is not working with jQuery 3.1.1. I need to use the same jQuery library to run all the other dependent functions.
Karan Batra
  • 161
  • 1
  • 2
  • 10
10
votes
1 answer

datetimepicker erasing value from input if value exists at page load

I'm using this datetime picker for Bootstrap 4 https://tempusdominus.github.io/bootstrap-4/ The plugin works just fine if the input is blank at load. However, I have an Edit form that has already a value but the datepicker is removing the value at…
10
votes
3 answers

bootstrap-datepicker set language globally

I'm using bootstrap-datepaginator that inside uses bootstrap-datepicker. Utilizzanto bootstrap-datepicker as a single component, there are no problems to set the language, but the same is not true using bootstrap-datepaginator. How can I do? I'm…
10
votes
5 answers

Bootstrap-Datetimepicker Not working

I have been looking at this for 2 days, and cant figure out what I am doing wrong. Here is a fiddle with my project. http://jsfiddle.net/dagger2002/RR4hw/ Here is the HTML
dagger2002
  • 262
  • 1
  • 3
  • 12
9
votes
2 answers

Bootstrap Glyphicons datetimepicker change icons

I am using Bootstrap datetimepicker https://eonasdan.github.io/bootstrap-datetimepicker/ As mentioned in the document I was successfully able to change the up, down arrows using below code. $('#datetimepicker7').datetimepicker({ sideBySide:…
9
votes
4 answers

$(...).datetimepicker is not a function

I use webpack and want to use bootstrap-datetimepicker. In my webpack config I use ProvidePlugin to get "jquery module". In my code I get error $(...).datetimepicker is not a function when I call $('#datetimepicker12').datetimepicker function. I…
Matt
  • 8,195
  • 31
  • 115
  • 225
9
votes
1 answer

changing orientation in Bootstrap Datetimepicker

I'm tryin to change the orientation of the Bootstrap Datetimepicker I even tried with this but I get: option orientation is not recognized My definition of the datetimepicker in the html is:
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
8
votes
2 answers

Error with plugin datetimepicker in JQuery with ajax

I try to do this, disable all dates and enable the dates that i pass with parameters This code not work $.ajax({ method: "GET", url: "url", }) .success(function(msg) { console.log(JSON.parse(msg)); var disableIni = JSON.parse(msg); …
1
2 3
50 51