sql="select * from zs_news edit_time where DateDiff('d', edit_time, '"&dates&"') =0 "
或者:
sql="select * from zs_news edit_time where DateDiff('d', edit_time, dates) =0 "
<%if month(rs("dateValue"))=month(date) and day(rs("dateValue"))=day(date) then
response.write "要输出的文字"
end if
%>
这是另外一种办法,和楼上lzp4881的回答实现同样的功能,可以说是换汤不换药吧!自己选择看看
sql="select * from biao where (date>#"date()-30"# or date=#"date()-30"#) and (date<#"date()"# or date=#"date()"#)"欢迎分享,转载请注明来源:内存溢出
评论列表(0条)