如何按時間顯示最新標志

字號:


    <%
    mytime=rs("time") '數(shù)據(jù)庫中保存時間
    nowtime=now() '當前時間
    if datediff("d",mytime,nowtime)<1 then
    '比較當前時間和數(shù)據(jù)庫中時間,如相差小于1,即顯示圖片new.gif
    %>
    <img src="images/new.gif">
    <%end if%>