如何检查经典asp中的日期

时间:2023-01-03 01:57:34

I have a variable last_login and want to output a message if the last login was yesterday, today or elsewise output the date. The last two cases are clear but how can I check if a given date in classic asp was yesterday?

我有一个变量last_login,如果最后一次登录是昨天,今天或者输出日期,想输出一条消息。最后两个案例很清楚,但我如何检查经典asp中的给定日期是否是昨天?

I'm blockheaded right now...

我现在被*了......

1 个解决方案

#1


3  

dateadd("d",-1,currentDate)

http://www.w3schools.com/Vbscript/func_dateadd.asp

#1


3  

dateadd("d",-1,currentDate)

http://www.w3schools.com/Vbscript/func_dateadd.asp