请输入您要查询的百科知识:

 

词条 DateAdd()
释义

§ 简介

DateAdd()

函数返回一个被改变了的日期。

表达式 DateAdd(timeinterval,number,date)

允许数据类型:

timeinterval is the time interval to add;

number is amount of time intervals to add;

and date is the starting date.

§ 实例

: <%

currentdate = #9/9/00#

newDate = DateAdd("m",3,currentdate)

response.write newDate

%>

<%

currentdate = #12:34:45 PM#

newDate = DateAdd("h",3,currentdate)

response.write newDate

%>

返回结果: 9/9/00

3:34:45 PM

"m" = "month";

"d" = "day";

If currentdate is in time format then,

"h" = "hour";

"s" = "second";

随便看

 

百科全书收录594082条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/11/11 9:09:24