Disabling certain months in bootstrap dateTIMEpicker in MONTH view -


i trying disable months in datetimepicker, not datepicker, in month mode (and need stay in mode).

months need disable ones before in datepickerfrom.

here code:

$('#newdialog #datepickerfrom').datetimepicker({         format: 'dd.mm.yyyy',         viewmode: 'months',         minviewmode: 'months',         picktime: false     });  $('#newdialog #datepickerto').datetimepicker({         format: 'dd.mm.yyyy',         viewmode: 'months',         minviewmode: 'months',         picktime: false     });      $('#newbutton').click(function() {         var dialog = $('#newdialog');         $('#dialogheader').text("new monthly fee");          resetvalue($("#id", dialog), '');         resetvalue($("#countryid", dialog), '');         resetvalue($("#typeid", dialog), '');         resetvalue($("#currencyid", dialog), '');         resetvalue($("#reportchanneltypeid", dialog), '');         resetvalue($("#value", dialog), '0.00');         resetvalue($("#description", dialog), '');         resetvalue($("#validto", dialog), '');          var date = new date();         var firstday = new date(date.getfullyear(), date.getmonth(), 1);         var pickerfrom = $('#newdialog #datepickerfrom').data('datetimepicker');         firstday.sethours(0, 0, 0, 0);         pickerfrom.setlocaldate(firstday);          $('#newdialog #datepickerto').datetimepicker().on("changedate", function(e) {             var endday = new date(e.date.getfullyear(), e.date.getmonth() + 1, 0);             var pickerend = $('#newdialog #datepickerto').data('datetimepicker');             endday.sethours(23,59,59,999);             pickerend.setlocaldate(endday);         }); 


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -