獲得上一個月幾月 - 中國WEB開發者網絡 (http://www.webasp.net) -- 技術教程 (http://www.webasp.net/article/) --- 獲得上一個月幾月 (http://www.webasp.net/article/1/789.htm) |
| -- 作者:未知 -- 發佈日期: 2003-04-17 |
| <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> |
| webasp.net |