使用ASP经典,我需要以某种方式比较两个日期.我该怎么做?
解决方法
Date1 = #rs["date"]# Date2 = #12/1/2009# If DateDiff("d",Date1,Date2) > 1 Then response.write "This date is before 12/1/2009" Else response.write "This date is after 12/1/2009" End If
HTH
Date1 = #rs["date"]# Date2 = #12/1/2009# If DateDiff("d",Date1,Date2) > 1 Then response.write "This date is before 12/1/2009" Else response.write "This date is after 12/1/2009" End If
HTH