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

referencing an Id created in a knockout component

I made a small fiddle demonstrating my issue here http://jsfiddle.net/LkqTU/33025/ the datepicker made using a component does not fire below is my original post... I am using the bootstrap 3 date time picker and it is working as follows. html
Bryan Dellinger
  • 4,724
  • 7
  • 33
  • 79
-1
votes
3 answers

how to change the date format of my bootstrap datetimepicker

i am new in bootstrap datetimepicker. How would i change its defaut time format?. I have a default date format of mysql (yyyy/mm/dd). I want also to change my datetimepicker so that it co-inside my database date format. Here is the bootstrap date…
Jc John
  • 1,799
  • 2
  • 34
  • 69
-1
votes
1 answer

Centering Bootstrap3-datetimepicker-rails content

I'm asking for help as still a newb to Ruby on Rails/Developing... I decided to use the Bootstrap 3 DateTimePicker gem in my Rails app to create a time sheet I'm working on. My issue is that the code below places the forms at the top of my page in…
-1
votes
1 answer

How can I correctly set the default value for bootstrap 3 datetimepicker?

I am trying to set the default date/time for a bootstrap 3 datetimepicker to today's date 08:00 AM. The following code is what I have done. However, that does not seems to be setting the datetime for the field. $(function(){ …
Jaylen
  • 39,043
  • 40
  • 128
  • 221
-1
votes
3 answers

I want bootstrap-datetimepicker only Year and Month

Now, Bootstrap datetimepicker viewed YYYY-DD-MM format. But, I want only YYYY-DD format. For example, Like the picture above. Now Source. Also it did not resolve to remove the DD to the source.
F. Kim
  • 53
  • 1
  • 9
-1
votes
1 answer

npm install bootstrap-material-datepicker

I'm working with React and Rails and implementing material design in my app. I'm loading the modules using webpack. I have been able to get bootstrap-material-design and moment.js through npm but now, i want to integrate bootstrap material…
-1
votes
1 answer

How to disable date before today in datetimepicker bootstrap?

Demo and full code is like this : http://fiddle.jshell.net/oscar11/dgb09c5c/5/ My Javascript code is like this : $('#time-start').datetimepicker({ format: 'yyyy-mm-dd hh:ii:ss', autoclose: true, pickerPosition: "bottom-left", …
samuel toh
  • 6,836
  • 21
  • 71
  • 108
-1
votes
2 answers

Uncaught TypeError: $(...).datetimepicker is not a function

I am using datetimepicker and I have problem : Uncaught TypeError: $(...).datetimepicker is not a function. I cannot fix it. Help me... My lib
-1
votes
2 answers

Bootstrap Date Time picker is not working

I have been trying to use the bootstrap Date and time picker. I dont know whats wrong with the code. though its very simple. I tried to include the datepicker jar manually and with CDN. Still its not working. Can any body help me with…
-1
votes
1 answer

How can I convert this AJAX structure to use .done instead of success:

I have a situation where a date, which is passed to an AJAX call, equals 'today' the first time the page is requested, and changes as the user uses the date picker. I am using Jonathan Peterson's Bootstrap…
-1
votes
1 answer

Set custom time on bootstrap TimePicker

i have 2 time pickers in my page like
Sebastian
  • 4,625
  • 17
  • 76
  • 145
-1
votes
1 answer

Where to put jQuery when using Bootstrap datetimepicker

I'm using Bootstrap 3 datetimepicker, and from the author's examples, the author placed jQuery in the header and javascript right after the datetime inputs. However, I read some posts suggesting that all scripts should be loaded last. But if I…
hook38
  • 3,899
  • 4
  • 32
  • 52
-2
votes
1 answer

Keyboard navigation disabled in viewMode bootstrap datetimepicker

When I set viewMode option to 'years', I can't use keyboard keys to navigate between years, and even when I press enter key on the default selected year, the widget is automatically closed while it should move to 'months' viewMode then 'days'…
-2
votes
1 answer

How to disable date field in Eonasdan bootstrap datetimepicker?

I would like to use Eonasdan bootstrap datetimepicker Version 4 for my project. The requirement is to find a time range. My question is : - is it possible to have range between 2 time without the date (in other word, disable the date and only have…
-2
votes
1 answer

I want to make related Time field with datetimepicker

i want to make relation between the date field and the anther time field so when i select date it will give me valid time in this date to reservation and after i select start time it will give me end time in the thierd field it must be start time…
1 2 3
50
51