I use this datetimepicker: http://eonasdan.github.io/bootstrap-datetimepicker/Options/ Basically I want to set maxDate: moment(), i.e maxDate should be limited to now. The problem is by the time the datepicker is opened maxDate is not now() anymore....
My code looks like this:    // TIME   $('#timepicker').datetimepicker({     minDate: minTime,   })      .on('dp.show', function(e){     console.log(selectedDate);     if($(this).val()==""){       $(this).val(minTime.format(...
I am using the Bootstrap datatimepicker (https://eonasdan.github.io/bootstrap-datetimepicker/). It's great but it does not show or let the user select seconds.   $(document).ready(function () {     $('#datetimepicker1').datetimepicker({de...
I am using Bootsrap 3 (eonasdan-datetimepicker) Datetime Picker. I am wondering how can i prevent user to select past time. I find the documentation doesn't say much about how to disable past time....
So for the calendar icon on the date picker, I turned it into a button with class datepickerbutton and tried to navigate to it with the keyboard, pressing enter on the button.  When I did that, the arrow keys become not functional, as opposed to when...
How can I persuade the datetimepicker to display its value in the input text field at initial pageload?  In this case the value attribute of the datepicker text-input is already set, but the field is displayed blank. Therefore I've tried to set t...
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...
I am currently using this datetimepicker in my code (No Icon (input field only)) and I need to trigger a function once a date-time is selected.  I tried using several jQuery functions but I would get different errors, here are the ones I used:  $(...
I am trying to format date variable and pass it to eonasdan datetimepicker for angular but no matter what I try to do I get      Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major...
I'm using the bootstrap datetimepicker for my calendar. My code looks like this:  var sundaysDisabled = [   moment("17/12/2017"),   moment("7/1/2018"),   moment("14/1/2018"),   moment("21/1/2018"),   moment("28...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.