I wanna show an weekday status into a dynamic page. This will work based on a item showed, in other words, I'm showing one business at time in my dynamic page, so, each one has a week schedule.
I've found a site who made a code that I want to make dynamic and show it based on business that displayed on my dynamic page. For example: Business#1 is open just in week days, from 08:00 AM to 18:00 PM, and the code get the user current weekday and hour, and display a status: Is open now or Is closed now.
The website that creates my intended code: