源代码:
VBScripts' function
MonthName
is used to get a month:
<% response.Write(MonthName(1)) response.Write("
") response.Write(MonthName(2)) %>
Abbreviated name of a month:
<% response.Write(MonthName(1,true)) response.Write("
") response.Write(MonthName(2,true)) %>
Current month:
<% response.Write(MonthName(month(date))) response.Write("
") response.Write(MonthName(month(date), true)) %>
运行结果:
VBScripts' function
MonthName
is used to get a month:
<% response.Write(MonthName(1)) response.Write("
") response.Write(MonthName(2)) %>
Abbreviated name of a month:
<% response.Write(MonthName(1,true)) response.Write("
") response.Write(MonthName(2,true)) %>
Current month:
<% response.Write(MonthName(month(date))) response.Write("
") response.Write(MonthName(month(date), true)) %>