Thank you for reply!
But does it mean that if I have events over last two years, I would need to duplicate this code 24 times, to create start and end array for every single month… ? And also every month add new one to the list?
Is there a way to make this automatic? So that every month new month shows up on that filter?