How Do I Auto Redirect Site Visitors To Local Page At PM Time Daily, And Back In The AM (wixLocation.To, getTime, if statement)?

I’m wanting to achieve an action similar to several post I’ve found already discussed and posed. Haven’t been able to find though, what I’m trying to achieve specifically.

I’m basically wanting to redirect my customers and visitors to another page within my site (hidden from menu), after 6:PM daily AND THEN cease the redirecting at 9:AM the next day - daily. As I understand it, I’m needing to use “wixLocation.To”, “getTime()” and “if statement” functions. BUT I’m simply at a lost with how to make it work. So still without a solution. :tired_face:

Can anybody help? Please… :relieved:

Thanks in advance.

Maybe this post will help you to understand how to work with dates and times a little bit better…read it.

Also take a look onto this one…