Hi,
how to set the start month when calling the calendar? Currently it is always the current month. I would like to specify the month? But how?
Hi,
how to set the start month when calling the calendar? Currently it is always the current month. I would like to specify the month? But how?
Try this. Just make sure that the id of your calendar is the same as (#calendar). If not change it in the code.
?>
<script>
window.onload = () => {
// run in onload
setTimeout(() => {
$('#calendar').fullCalendar('gotoDate', '2016-12-31');
}, 10)
}
</script>
<?php