asp中的时间大小怎么比较
答案:1 悬赏:50 手机版
解决时间 2021-03-31 20:47
- 提问者网友:無理詩人
- 2021-03-31 11:38
asp中的时间大小怎么比较
最佳答案
- 五星知识达人网友:罪歌
- 2021-03-31 12:05
response.write( datediff( "s","2013-11-14 17:00:00",now() ) )
datediff 两个日期间的时间间隔追问可以给个完整的代码吗?
比如:
<%
if
datediff( "s","2013-11-14 17:00:00",now() )>0
then
%>追答time1 = "2013-11-14 17:00:10"
time2 = "2013-11-14 17:00:20"
if datediff("s", time1, time2) > 0 then
response.write("time1 < time2 " )
elseif datediff("s", time1, time2) < 0 then
response.write("time1 > time2 " )
else
response.write("time1 = time2 " )
end if
datediff 两个日期间的时间间隔追问可以给个完整的代码吗?
比如:
<%
if
datediff( "s","2013-11-14 17:00:00",now() )>0
then
%>追答time1 = "2013-11-14 17:00:10"
time2 = "2013-11-14 17:00:20"
if datediff("s", time1, time2) > 0 then
response.write("time1 < time2 " )
elseif datediff("s", time1, time2) < 0 then
response.write("time1 > time2 " )
else
response.write("time1 = time2 " )
end if
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯