获得上一个月几月

发表于:2007-06-30来源:作者:点击数: 标签:
<html><body>
<%
mnth = MonthName(Month(Now))
M = Month(Now)
If M = 1 Then M2 = M + 11 Else M2 = M - 1
mnthprev = MonthName(M2)
Response.Write"This month is: "&mnth&"<br>"&_
"Last month was: "&mnthprev&""
%>
</body></html>

原文转自:http://www.ltesting.net