month()
function: 返回日期.
syntax: month(date)
arguments: date is any valid date expression.
example: <%=month(#08/04/99#)%>
result: 8
monthname()
function: returns a string identifying the specified month.
syntax: monthname(month, [, abb])
arguments: month is the numeric representation for a given month; abb
(optional) is a boolean value used to display month abbreviation. true
will display the abbreviated month name and false (default) will not show
the abbreviation.
example: <%=monthname(month(#08/04/99#))%>
result: august
now()
function: returns the current system date and time.
syntax: now()
arguments: none
example: <%=now%>
result: 8/4/99 9:30:16 am
replace()
function: returns a string in which a specified sub-string has been
replaced with another substring a specified number of times.
syntax: replace(strtobesearched, strsearchfor, strreplacewith [, start
][, count ][, compare]]])
arguments: strtobesearched is a string expression containing a sub-
string to be replaced; strsearchfor is the string expression to search for
within strtobesearched; strreplacewith is the string expression to replace
sub-string strsearchfor; start (optional) is the numeric character
position to begin search; count (optional) is a value indicating the
comparision constant.
example: <%
strtest = "this is an apple!"
response.write replace(strtest, "apple", "orange")
%>
result: this is an orange!
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器