bean262
03-29-2006, 03:24 PM
I am trying to put date & time restrictions via IF statements. For example is today's date is before April 10 and the time is before 10:00am, you get a message that says: "You can see this yet."
Thus far my code looks like this:
if (((Month(Date) & "/" & Day(Date) & "/" & Year(Date)) < "4/10/2006") and (Time() < "12:00:00 PM")) then %>
<h4>You can't sign up until April 10.</h4>
<% else %>
<h4>You need not sign up.</h4>
I was thinking it was my Time format but I have tried a few different things to no avail. Any ideas or suggestions would be greatly appreciated!
Thus far my code looks like this:
if (((Month(Date) & "/" & Day(Date) & "/" & Year(Date)) < "4/10/2006") and (Time() < "12:00:00 PM")) then %>
<h4>You can't sign up until April 10.</h4>
<% else %>
<h4>You need not sign up.</h4>
I was thinking it was my Time format but I have tried a few different things to no avail. Any ideas or suggestions would be greatly appreciated!