<%'---------------判断今天是星期几%>
今天是<%
temp="2008-02-23"
select case Weekday(cdate(temp))
case "1"
response.write"星期日"
case "2"
response.write"星期一"
case "3"
response.write"星期二"
case "4"
response.write"星期三"
case "5"
response.write"星期四"
case "6"
response.write"星期五"
case "7"
response.write"星期六"
case else
response.write"很抱歉!可能是发生了错误,我不今天知道是星期几!"
end select
%>
今天是<%
temp="2008-02-23"
select case Weekday(cdate(temp))
case "1"
response.write"星期日"
case "2"
response.write"星期一"
case "3"
response.write"星期二"
case "4"
response.write"星期三"
case "5"
response.write"星期四"
case "6"
response.write"星期五"
case "7"
response.write"星期六"
case else
response.write"很抱歉!可能是发生了错误,我不今天知道是星期几!"
end select
%>