UPDATE: I just made a custom plugin to have the functionality that I wanted. All good
Hello,
I am working on making a time-table that shows the current week, Monday - Sunday and displays each hour 00:00 - 23:00
How it works is, it has a header that displays the days of the week, Monday Tuesday Wednesday, etc. and as you click on it, it changes the day of the week 0(sunday) - 6(saturday).
Underneath the header is the actual timetable that displays the hours of the day 00:00 - 23:00 in their own group.
As we change the day of the week, I want to change the contents of these groups to display if there is a current event for that Day/Time
So, I click Monday and it changes the TT to display Monday and say there is an event at 09:00 that Monday, it will display that events data.
Attached is an image of what the TT will look like. Each group will be a specific time, and the entire TT parent group will contain the Day stored as a state.
My question is, is there a way I can grab the current date, and change the Day of the Week value (0 - 6) so that it sets the date to Monday/Tuesdeay/Wednesday/etc for the current week?