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

How to make eonasdan datetimepicker css work properly?

I'm implementing eonasdan's datetimepicker in my project. I'm having a problem making the CSS work as intended. I downloaded the datepicker JS and CSS from https://github.com/Eonasdan/bootstrap-datetimepicker and named them bootstrap-datepicker.js…
2
votes
1 answer

YADCF : range_date filter doesn't work with specific date format

I'm unable to make the range_date filter of yadcf to work. I'm using it with datatables.net. And I don't know if I am missing something or if it is a bug. I'm using this date format for the original data passed to datatable : YYYY-MM-DDTHH:mm. And…
Vatvat99
  • 23
  • 7
2
votes
1 answer

Date time picker : Reset

I am using a package. Specifically ThIS. Everything works fine, I clicks on the date picker, I selects year, Then month and then date, And the picker closes. But when it closes and i click on it again, Only the last day calendar shows, Meaning it…
Gammer
  • 5,453
  • 20
  • 78
  • 121
2
votes
1 answer

Assigning Value to Bootstrap-datetimepicker with Format MM/YYYY Displays Incorrect Year

I am using bootstrap-datetimepicker version 4.17.47 in ASP MVC 4 app. I have this model property: public DateTime MonthYear { get; set; } I assign default value in controller (arbitrary value is just an example actual value is determined through…
2
votes
2 answers

jQuery Bootstrap Timepicker start and end time

I have 2 timepickers where the first one is for start time and the second one is for end time. I want that the end time should not exceed the start time. I don't want any default value to be set, also at the very beginning when the user clicks on…
user9690125
2
votes
2 answers

Bootstrap datetimepicker add 1 day to mindate

I'm using bootstrap datetimepicker, how do I add one day in datetimepicker bootstrap minDate? I want to filter the minDate for more 1 day. For example my checkIn datetimepicker is 02/16/18 then the the date to 02/16/18 is disabled in checkOut…
Itsumo Kokoro
  • 169
  • 4
  • 14
2
votes
0 answers

problems with ng2-eonasdan-datetimepicker

i have a problems with ng2-eonasdan-datetimepicker i installed via npm , i put the row in angular-cli "styles": [ "styles.css", "../node_modules/bootstrap/dist/css/bootstrap.min.css", "../node_modules/font-awesome/css/font-awesome.css", …
Gazano
  • 183
  • 2
  • 12
2
votes
2 answers

Add days to datetimepicker upon radio button changed

I have a two date input box Date From and Date To and two radio buttons. The first radio button will add 5 days while the second radio button will add 10 days to the Date To. How to trigger the Date To upon radio button…
2
votes
3 answers

How to restrict user to input data using datetimepicker and disable manual user input?

I want to restrict the user to only input data using the datetimepicker. Below is the code I am using:
2
votes
2 answers

How to fix opening time minutes for whole week using DateTime Picker?

Using DateTimepicker I want to set store opening time as 10:30 AM (for example) for the whole week. Using this piece of code I could able to restrict hours. var curentDate = new Date(); var lastDate = new…
2
votes
1 answer

Bootstrap datetimepicker change disabled days after initialisation

I try to change the disabled days after the datetimepicker is initialised. I do this with an ajax call but I tried to simplify the code. I tried $('#datetimepicker').data("DateTimePicker").FUNCTION() for the FUNCTION I tried .disableddates,…
Texellab
  • 101
  • 1
  • 8
2
votes
1 answer

Insert label inside bootstrap datetimepicker

Is there a way to add hour/minute label to eonasdan's bootstrap datetimepicker like shown in the screenshot?
joym8
  • 4,014
  • 3
  • 50
  • 93
2
votes
1 answer

Eonasdan/bootstrap-datetimepicker datetime picker reset through external javascript call

I have use Eonasdan/bootstrap-datetimepicker version : 4.17.47, now explain scenario when I open bootstrap-datetimepicker from text box & selected date after that I have one clear button onclick I have clear that value, but when I am going back to…
2
votes
1 answer

Set valid locale for datetimepicker

I have quite strange issue. I'm using jQuery 3, Boostrap 3 and this DateTimepicker. The problem is that in datetime picker at first attempt I'm always getting invalid locale (always English), but on second attempt (and further) it's valid. The end…
2
votes
1 answer

disabledTimeIntervals in datetimepicker not worked when set the option after initialize

I use bootstrap datetimepicker to build my date & time picker. I make my time picker as following in initialize of page: $('#PickupTime').datetimepicker({ locale: 'en', format: 'hh:mm A', stepping: 30, }); I want to set time picker min…
Duha
  • 811
  • 1
  • 12
  • 26