Questions tagged [eonasdan-datetimepicker]

A Bootstrap-based is a date/time picker widget by Eonasdan that uses Twitter's bootstrap library. For just a datepicker, see the [bootstrap-datepicker] 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. For more see https://github.com/Eonasdan/bootstrap-datetimepicker

Stack Snippet Starter Pack:

<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"/>
<link href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/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.7/js/bootstrap.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/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();
});
305 questions
5
votes
2 answers

Getting two date time pickers on the same line with bootstrap 3?

I'm using eonasdan datetimepicker and bootstrap 3. I've got one datetimepicker set as calendar and the other as time. I'd like to be able to have them side by side on the same line. But I can't quite figure it out without breaking the…
4
votes
2 answers

How to set date-picker with JQuery 3.3.1 and Bootstrap 3.3.7?

I have to set date picker for input fields in few different forms. In the past I have used jQuery date-picker but for this project I use Bootstrap 3 so there is another method that is available. Here is example that I have so…
4
votes
1 answer

How to set date for inline bootstrap datetimepicker

I've tried using $("#datetimepicker1").data("DateTimePicker").date('2017/04/23 23:34:23'); Then I got error cannot read property date of undefined. Is there another way to set date and time?
4
votes
3 answers

Get Total Seconds In javascript

I am using Eonasdan datetimepicker. In formatting date it contains PM and AM and so I love to use it for my date in order to identify time easily. But when I am creating some condition via Javascript to calculate the total seconds of two given times…
Ailyn
  • 265
  • 1
  • 6
  • 17
4
votes
2 answers

Bootstrap Datetimepicker daysOfWeekDisabled option doesn't work properly

So I have one input with date+time value (getting values from DB) and I am using jQuery Datetime picker to change date/time. Here is my input
JohnWayne
  • 651
  • 9
  • 28
4
votes
2 answers

Disable future dates in Bootstrap 3 Datetimepicker

I'm using Bootstrap 3 Datetimepicker and I need to disable all my future dates, I know it has it's own disabledDates function but I tried so many times and it's still not working. What am I doing wrong? $('#data_move').datetimepicker({ language:…
MattDAVM
  • 505
  • 3
  • 6
  • 25
4
votes
1 answer

Bootstrap Datetimepicker not working in Safari

I'm using eonasdan's bootstrap datetimepicker plugin for my website. My website is running in ASP.NET MVC 5, it has jQuery 1.10.2, bootstrap 3.3.6, requirejs and several other plugins. The problem I'm having is that the datetimepicker is not working…
4
votes
1 answer

Validate date and datetime with Bootstrap datetime picker, Jquery validation plugin in an Asp.Net MVC4 application

I am currently developping a MVC Asp.Net 4.6 WebApp with Bootstrap 3.1.1, Eonasdan datetime picker v4.7.14 and jquery validation plugin v1.14.0. And I've got some problem validating the date. My Model looks like that: public class PersonModel{ …
3
votes
1 answer

Bootstrap Datetimepicker range on init issue

Sometimes I've forms with precompiled dates (in these example: 06/02/2019).
3
votes
1 answer

Bootstrap datetimepicker now showing calendar

Recently I started upgrading one of my old projects that was written in plain php/javascript to start using Laravel. I started configuring some basic stuff like select2, tinymce, date(time)picker and there is where I got stuck. Somehow the…
3
votes
3 answers

How to disable Bootstrap datetimepicker

I am using the Bootstrap datatimepicker (https://eonasdan.github.io/bootstrap-datetimepicker/). I'd like to disable the datetimepicker on page load. $(document).ready(function () { $('#datetimepicker1').datetimepicker({ defaultDate: new…
3
votes
2 answers

How to get Unix timestamp using Bootstrap-datetimepicker

I am using 3rd party date time picker from https://eonasdan.github.io/bootstrap-datetimepicker/ It is working fine, however, I'd like to get the value in Unix timestamp format. How do I do that? There is no formatting option for Unix.…
user7933742
3
votes
2 answers

Bootstrap Datetimepicker more than one set of linked pickers on a page

I am using Eonasdan Bootstrap Datetimepicker https://eonasdan.github.io/bootstrap-datetimepicker/#linked-pickers and am trying to setup linked pickers. I can get it to work as needed if I have one pair of pickers on a page but not if I have more…
3
votes
2 answers

How to set the datetimepicker month name format as three digit eg. Jan

I am using bootstrap datetimepicker. I want the datetimepicker format as short month name eg. Jan. My code is below and it shows the full month name now as January. How to make it Jan? $('.datepickersren').datetimepicker({ format:…
Nuju
  • 322
  • 6
  • 17
3
votes
1 answer

Bootstrap Date picker and moment.js jalali calendar

I'm using bootstrap datetimepicker in my project. I need to change it to jalali calendar, so: I used locale:'fa' in datetimepicker initializing code I added moment-jalaali.js after moment.js So after adding moment-jalaali when I click on textbox…
1
2
3
20 21