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:
At the moment my calendar is like this:
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>
I’ve done it in other questions, but I do it again, I recommend you read it: How we should format questions and answers?
– user28595
Take a look at the Datepicker for Bootstrap
– Ricardo Pontual
In this link you can test the formats, in "Start View", select "1/ months"
– Ricardo Pontual