This program displays a message according to the time of the day and weekday.
greeting.asp
<%@ Language=VBScript %> <% If Time >= #12:00:00 AM# and Time < #12:00:00 PM# then greeting = "Good Morning" else greeting = "Hello!" End if %> <script runat=server language=vbscript> Sub SayDate() Response.Write("<h1>Today's date is "& Date &"</h1>") End sub </script> <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> </HEAD> <BODY> <P><% =greeting %> </P> <% Call SayDate() Response.Write("<hr>") %>