發表于:2011-07-05 00:00:00來(lái)源:SOUAB.COM人(rén)氣:2997
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Asp判斷當天的星期</title>
</head>
<body>
<%
dim Weekdays,Dates
Weekdays = weekDay(now(),1)
select case Weekdays
case "1"
Dates="星期天"
case "2"
Dates="星期一"
case "3"
Dates="星期二"
case "4"
Dates="星期三"
case "5"
Dates="星期四"
case "6"
Dates="星期五"
case "7"
Dates="星期六"
case else
Dates="錯誤的時間"
end Select
response.write Dates
%>
</body>
</html>