Change Home Page based on time

Hi, I am looking to create a way so that when users enter the website on a Sunday from 10 am till 12 pm it will take them to a landing page instead of the regular home page.

I think this might be possible by retrieving the user’s time when they first come in, but I am fairly new to HTML and Java, so I am not sure where to look.

Would it be possible to have this automatically change the home page on Wix or is there a work around?

Thank you.

You can check the date and time using standard Javascript date and time functions, and based on the time, redirect to another page using wix-location.to() .

To learn about programming with Velo, read the following articles that will help you start working with Velo:

Thank you for the response! Hope I can put it to good use