获得月的名字
代码:
<!DOCTYPE html><html>
<body>
<p>VBScripts' function <b>MonthName</b> is used to get a month:</p>
<%
response.Write(MonthName(1))
response.Write("<br>")
response.Write(MonthName(2))
%>
<p>Abbreviated name of a month:</p>
<%
response.Write(MonthName(1,true))
response.Write("<br>")
response.Write(MonthName(2,true))
%>
<p>Current month:</p>
<%
response.Write(MonthName(month(date)))
response.Write("<br>")
response.Write(MonthName(month(date), true))
%>
</body>
</html>
结果:
VBScripts' function MonthName is used to get a month:
January
February
Abbreviated name of a month:
Jan
Feb
Current month:
October
Oct
相关文章
- ASP 表单
- ASP 引用文件
- ASP Global.asa
- ASP 快速参考
- ASP 教程
- ASP ReadAll 方法
- ASP SkipLine 方法
- ASP WriteLine 方法
- ASP StaticObjects 集合
- ASP Contents.RemoveAll 方法
- ASP DriveExists 方法
- ASP.NET HtmlImage 控件
- ASP.NET HtmlSelect 控件
- ASP Transfer 方法
- ASP URLEncode 方法
- ASP.NET DataTextField 属性
- ASP.NET Items 属性
- ASP.NET SelectedIndex 属性
- ASP.NET SelectedValue 属性
- 获取服务器变量