注册 登录
编程论坛 新人交流区

[求助]急~!急~!急~!DateAdd函数怎么用呢??

angerzl 发布于 2007-10-22 17:16, 790 次点击
if DateAdd (旧日期,新日期) = 5 then
'//显示news
else
'//不显示news
end if


上面那段哪位可以帮我具体写下啊………………

[此贴子已经被作者于2007-10-23 9:23:17编辑过]

5 回复
#2
rayxiang2007-10-22 19:23
不太明白你的意思
#3
angerzl2007-10-23 07:58
我意思是在新闻后面加一个"NEW"小图标,但只希望它在最近五天以内的新闻后面显示,其它的不显示(看www.masztb.com)

写一段函数让它有个时间限制…………
#4
dingonet2007-10-23 08:42
if date(now)-olddate==5 then
'xd
else
'se
end if
#5
angerzl2007-10-23 08:54
new 要怎么显示出来啊???
#6
angerzl2007-10-23 09:17
<% if date(Infotime)=1 and datediff("d",now(),Infotime)<=3 then
response.Write("&nbsp;<font color=red>new!</font>")
End if%>


这段语句要加上 else 又应该如何加呢????
哪位高手帮帮忙啦,很急的~?~?~?~???
1