I used mini calendar and DHTMLXLayout to make 2 views
on the right are 3 mini calendars taking up 20% of the browser.
on the left are all the events of a quarter of a year.
Basically what I want now is something like this:
I want to take the current date (i.e new Date()
And check in which month that falls (let’s say April) and let the code automatically check in which quarter we are (in this case 2nd quarter of the year). and show all events from april 1st till end of June (where the 2nd quarter ends)
I just need this calculation, I can’t quite figure it out.
to see an example take a look at the attached screenshot