获得天的名字

代码:

<!DOCTYPE html>

<html>

<body>

 

<p>

VBScripts' function <b>WeekdayName</b> is used to get a weekday:

</p>

<%

response.Write(WeekDayName(1))

response.Write("<br>")

response.Write(WeekDayName(2))

%>

 

<p>Abbreviated name of a weekday:</p>

<%

response.Write(WeekDayName(1,true))

response.Write("<br>")

response.Write(WeekDayName(2,true))

%>

 

<p>Current weekday:</p>

<%

response.Write(WeekdayName(weekday(date)))

response.Write("<br>")

response.Write(WeekdayName(weekday(date), true))

%>

 

</body>

</html>

结果:

VBScripts' function WeekdayName is used to get a weekday:

Sunday
Monday

Abbreviated name of a weekday:

Sun
Mon

Current weekday:

Wednesday
Wed

相关文章