獲得天的名字
代碼:
<!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 標簽格式化文本
- 指定的驅動器存在嗎?