如何按时间显示最新标志 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

    作者: 字体:[增加 减小] 类型:转载

    <%

    mytime=rs("time") ‘数据库中保存时间

    nowtime=now() ‘当前时间

    if datediff("d",mytime,nowtime)<1 then

    ‘比较当前时间和数据库中时间,如相差小于1,即显示图片new.gif

    %>

   

    <%end if%>

最新文章