软件教程

asp判断信息是否过期并计算天数

来源: 本站    类别: 软件教程    日期: 2015/12/7

 

<% 
Dim g_date 
g_date=DateDiff("d",now(),rs("读取到的日期")) 
if g_date<=0 then '加上当天的判断 
response.write"<font color=#FF0000>已过期</font>" 
Else 
response.write "<font color=black>距离过期还有 "&g_date&" 天</font>" 
end if
%>

相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com