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
-1
votes
1 answer

Bootstrap 3 datetimepicker - MinTime and MaxTime

i am trying to set a min time and max time for https://getdatepicker.com/4/ $mydatepicker.datetimepicker({ minDate: moment("12/01/2015 8:50 AM"), maxDate: moment("12/30/2015 9:50 AM"), viewMode: 'days', format: 'DD MMMM YYYY hh:mm…
Sourav
  • 67
  • 1
  • 14
-1
votes
1 answer

Solved - Uncaught TypeError: $(...).datetimepicker is not a function at app.js:61

Solved, but it still won't change the datatime format from MM-DD-YY to DD-MM-YY I'm searching for the reason of my datepicker error, but nothing seems to work. Also, I've tried to make it DD-MM-YY hh:mm but it keeps making it MM-DD-YY. The event: …
-1
votes
1 answer

Bootstrap date picker Disable current day and tomorrow

Hi Guys i need your expertise, the current code below will disable the current day and the past dates and what i'm trying to do is disable past days + current day and tomorrow code for disabling the current day disabledDates: [new Date()] date…
-1
votes
3 answers

Convert HTML Date to Mysql Format

I am using a bootstrapdatetimepicker as well as moment.js When i call the following var starteventtime= ($('#startdatetime').data('DateTimePicker').date()); I get a date similar to Wed Mar 27 2019 00:00:00 GMT+0000 I also have the option for the…
Ryan
  • 159
  • 11
-1
votes
1 answer

Cannot Get Value Of Selected Date From Bootstrap-datetimepicker

I need to get the value displayed in my input after the calendar closes. Below is code i have tried but never hits any of them $('#startDate').click(function () { console.log('1: ' + $('#startDate').val()) }) …
murday1983
  • 3,806
  • 14
  • 54
  • 105
-1
votes
2 answers

Setting selected date in calendar to null on Bootstrap datetime picker

I'm using the bootstrap datetime picker, the documentation of which can be found here: https://eonasdan.github.io/bootstrap-datetimepicker/Options/ I'm trying to set the selected date to null. I'm able to blank out the date (i.e. 2/10/2019) within…
Jason Howard
  • 1,464
  • 1
  • 14
  • 43
-1
votes
1 answer

How to set dynamic value to minView in datetimepicker?

I'm implementing Dale Lotts datetimepicker in my app. I want to change the value of minView dynamically from minute to day. I have tried something like this. In HTML:
-1
votes
2 answers

Bootstrap Date picker 3 Always open

I want bootstrap datepicker 3 to remain always open. I have tried all previous solutions but I guess they are not applicable on version 3. I can show it on 'dp.hide' but it hangs my browser because of inefficiency. Any other solutions are…
-1
votes
1 answer

Set date from model, not default by datetimepicker

Have a good day. I'm searching the way to set date from edit view in my app and only shows the current date. I'm using bootstrap datetimepicker like this: $('.datepicker').datetimepicker( { format: 'DD/MM/YYYY', locale: 'es', icons: { …
-1
votes
2 answers

CSS: my datetimepicking field is put behind my other inputfields

I'm stuck on how to make my table which gets deployed through jquery in front of my input fields... I presume the problem is solvable with css but I can't seem to figure out specifically how to adjust it. (see image below) I'm using eonasdan's…
James D
  • 1,975
  • 2
  • 17
  • 26
-1
votes
1 answer

datetimepicker not showing calendar just time picker

The components shows only time picker: .form-group label.col-xs-5.control-label test field .col-xs-5 #fromDate.input-group.date input.form-control(type='text') span.input-group-addon …
-1
votes
1 answer

ng2-eonasdan-datetimepicker doesn't work with Bootstrap 4 Alpha 6

I'm using ng2-eonasdan-datetimepicker in angular app. It works with Bootstrap 3 and Bootstrap 4 Alpha 5, but only an empty popup is shown for Bootstrap 4 Alpha 6. Working Sample. If you'll change:
-1
votes
2 answers

How to dynamically create bootstrap datepicker?

I need to create a date picker dynamically using jQuery. In my form I will have button to create date picker. Below is the code I tried so far:
-1
votes
1 answer

How to enable only week first day in bootstrap datetimepicker?

I am using bootstrap datetimepicker v3.0. How to enable only week first day in bootstrap datetimepicker? Expected result:
Kapil Yadav
  • 650
  • 1
  • 5
  • 29
-1
votes
1 answer

Bootstrap datetimepicker select time view mode

Hi I'm working with bootstrap datetimepicker. I'm trying to show select time view after choose date (click on date). Is there any events to open select time view or something else?