<%@ Language= "VBScript" %>
<html>
<head>
<title>Example 1</title>
</head>
<body>
<font face="MS Gothic">
<H1>Welcome to my Home Page</H1>
<%
'Create some variables.
dim strDynamicDate
dim strDynamicTime
'Get the date and time.
strDynamicDate = Date()
strDynamicTime = Time()
'Print out a greeting, depending on the time, by comparing the last 2 characters in strDymamicTime to "PM".
If "PM" = Right(strDynamicTime, 2) Then
Response.Write "<H3>Good Afternoon!</H3>"
Else
Response.Write "<H3>Good Morning!</H3>"
End If
%>
Today's date is <%=strDynamicDate%> and the time is <%=strDynamicTime%>
</font>
</body>
</html>
Time to create page: 0.054 seconds