获得天的名字
代码:
<!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
相关文章
- ASP Server 对象
- ASP – AJAX 与 ASP
- ASP 实例
- ASP 简介
- ASP Skip 方法
- ASP WriteLine 方法
- ASP DateCreated 属性
- ASP OpenAsTextStream 方法
- ASP Form 集合
- ASP StaticObjects 集合
- ASP Timeout 属性
- ASP GetLastError 方法
- ASP MapPath 方法
- ASP DeleteFile 方法
- ASP DriveExists 方法
- ASP FolderExists 方法
- ASP.NET HtmlInputCheckBox 控件
- ASP.NET DataValueField 属性
- 在 asp 中使用 html 标签格式化文本
- 指定的驱动器存在吗?