format - Bootstrap datetimePicker months view -


i have integreated bootstrap datetimepicker on website personalization. problem when choose month format have 3 rows different number of months 4-5-3 want put every 4 month in 1 row. helps?

javascript

var currenttime = new date() var mindate = new date(currenttime.getfullyear(), currenttime.getmonth());  //init datetimepicker var params = {   locale: 'fr',   clear: "clear",   usecurrent: true,   mindate: mindate,   stepping: 5,   format: 'mm/yyyy',   icons: {     previous: '',     next: ''   },   inline: false } 

screenshot of timepicker

try this

<div class="row">   <div class="col-md-12">     <h6>datetimepicker</h6>     <div class="form-group">       <div class="input-group date" id="datetimepicker">         <input type="text" class="form-control" /> <span class="input-group-addon"><span class="glyphicon-calendar glyphicon"></span></span>       </div>     </div>   </div> 

javascript

$(function() {   var date = new date();   var currentmonth = date.getmonth();   var currentdate = date.getdate();   var currentyear = date.getfullyear();     $('#datetimepicker').datetimepicker({     locale: 'fr',     clear: "clear",     usecurrent: true,     mindate: new date(currentyear, currentmonth, currentdate),     stepping: 5,     format: 'mm/yyyy',     icons: {       previous: '',       next: ''     }   }); }); 

demo on fiddle


Comments