如何按时间显示最新标志

栏目: 编程语言 · 发布时间: 8年前

内容简介:如何按时间显示最新标志
<%
mytime=rs("time") '数据库中保存时间
nowtime=now() '当前时间
if datediff("d",mytime,nowtime)<1 then 
'比较当前时间和数据库中时间,如相差小于1,即显示图片new.gif
%>
<img src="images/new.gif">
<%end if%>

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Algorithms and Theory of Computation Handbook

Algorithms and Theory of Computation Handbook

Mikhail J. Atallah (Editor) / CRC-Press / 1998-09-30 / USD 94.95

Book Description This comprehensive compendium of algorithms and data structures covers many theoretical issues from a practical perspective. Chapters include information on finite precision issues......一起来看看 《Algorithms and Theory of Computation Handbook》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

SHA 加密
SHA 加密

SHA 加密工具