I use fullcalendar in my code and have implemented and added events into it, but my goal was to get the first visible and last visible date of the calendar.
What we wanted to do is get the visible first and last dates so that we'll be able to throw the extracted dates in the database and get all events within that range of dates.
I've tried this Get the start and end dates visible in a datepicker days view? but I want to use jQuery and fullCalendar only. Is there other way to extract the dates without using datepicker?

Using version 5.5.1, you can inspect the rendered HTML. The day cells have class
fc-daygrid-dayanddata-date="{date}"Given the original div id is "calendar" you can use:
Example snippet: