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

Asked

Viewed 160 times

0

I’m using Boostrap 4.1.1 and I’m trying to create a multiple calendar with only the month and year, same as the image below:

inserir a descrição da imagem aqui

At the moment my calendar is like this:

inserir a descrição da imagem aqui

CODE:

<input type="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>
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.