|
技术资料 > ASP技术 > ASP技巧 : 获得上一个月几月 |
获得上一个月几月 March 25,2004 |
<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>
|
|
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved