How to create a multiple calendar, only with year and month?

0

I'm using Boostrap 4.1.1 and I'm trying to create a multiple calendar with just the month and year, just like the one below:

Atthemomentmycalendarlookslikethis:

CODE:

<inputtype="text" class="form-control border-0" id="periodo-picker" placeholder="Período">

    <script>
    $('#periodo-picker').datepicker( {
        numberOfMonths: 2,
        changeMonth: true,
        changeYear: true,
        showButtonPanel: true,
        dateFormat: 'mm/yy',
        onClose: function(dateText, inst) { 
            $(this).datepicker('setDate', new Date(inst.selectedYear, inst.selectedMonth, 1));
        }
    });
</script>
    
asked by anonymous 18.06.2018 / 21:10

0 answers