Things I’ve checked:
FullCalendar Version: I am using FullCalendar v5.
Correct Initialization: The calendar is initializing correctly, but the current date isn’t showing up as expected.
JavaScript Console: There are no JavaScript errors in the console.
CSS Issues: I haven’t modified the default styles that would hide the current date.
` var calendarEl = document.getElementById(“calendar”);
var calendar = new FullCalendar.Calendar(calendarEl, {
headerToolbar: {
left: “prev,next today”,
center: “title”,
right: “dayGridMonth,timeGridWeek,timeGridDay”,
},
selectable: true,
selectMirror: true,
editable: true,
initialDate:new Date(),
weekNumbers: true,
navLinks: true,
nowIndicator: true,
events: data,``
Mohammad Ashik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.