ASP DateDiff问题
name的生日是1983-7-8
<%……
a=1983-7-8
b=2006-10-2
if 1<DateDiff("d",c,a)<31 then
response.write(name)
……
%>
怎么name的生日不在这个范围里也输入name?
参考答案:1<DateDiff("d",c,a)<31 条件语句不应该这样写
应该写成 1<DataDiff("d",c,a) and DataDiff("d",c,a)<31
name的生日是1983-7-8
<%……
a=1983-7-8
b=2006-10-2
if 1<DateDiff("d",c,a)<31 then
response.write(name)
……
%>
怎么name的生日不在这个范围里也输入name?
参考答案:1<DateDiff("d",c,a)<31 条件语句不应该这样写
应该写成 1<DataDiff("d",c,a) and DataDiff("d",c,a)<31