Display a text according to opening hours

(Sorry for the clerical errors I use Google Translations)

Hello everyone,
I need help with some code.
I would like depending on the day and time (24h format), display an element.

  • Display an “open” text according to the times below:
    Monday, Tuesday, Wednesday, Thursday, Friday: From 8:00 to 12:00 and 14:00 to 18:00.

  • Display a “closed” text if we are not within the above times.

Please note, we are in French time (24h format)

Thank you in advance for your help.

Have a good day

You will need https://www.w3schools.com/jsref/jsref_getday.asp and JavaScript Date getHours() Method

Thanks for the info but how to build it with code?

See the Open for Business example to see how you can display open and closed text.