28,409
社区成员




<html>
<head>
<title>test1.asp</title>
</head>
<body>
<%=date()%>年<%=month(date())%>月</br>
<font color="red"><%=day(date())%>日</font></br>
<%= (WeekDayName(WeekDay(now()))) %>
<%
hour=hour(now())
if hour>6 and hour<=8 then
response.write("现在是早上")
elseif hour>8 and hour<=12 then
response.write("现在是上午")
elseif hour>12 and hour<=14 then
response.write("现在是中午")
elseif hour>14 and hour<=18 then
response.write("现在是下午")
else
response.write("现在是晚上")
end if
%>
</body>
</html>
<html>
<head>
<title>test1.asp</title>
</head>
<body>
<%=date()%>年<%=month(date())%>月</br>
<font color="red"><%=day(date())%>日</font></br>
<%= (WeekDayName(WeekDay(now()))) %>
<%
dim myhour
myhour=hour(now())
if myhour>6 and myhour<=8 then
response.write("现在是早上")
elseif myhour>8 and myhour<=12 then
response.write("现在是上午")
elseif myhour>12 and myhour<=14 then
response.write("现在是中午")
elseif myhour>14 and myhour<=18 then
response.write("现在是下午")
else
response.write("现在是晚上")
end if
%>
</body>
</html>