I’m using the below:
<%
if (hour(now) >= 18) and (hour(now) <= 23) then %>
we are open.
<% end if
if (hour(now) >= 23) and (hour(now) <= 18) then %>
we are closed.
<% end if %>
However, I need to include minutes and can’t seem to figure it out. i.e >= 18:30 - <= 23:00
Thanks in advance
Edited by WingedPanther, 18 November 2009 - 07:06 PM.
add code tags (the # button)


Sign In
Create Account

Back to top









