<%
Dim className
If DateDiff("d", Date(), DateSerial(2007,8,4)) >=0 Then
className = "blackwhite"
elseIf DateDiff("d", Date(), DateSerial(2007,8,5)) >=0 Then
className = "redwhite"
Else
className = "regular"
End If
%>
'Returns a string
Function dateClassName(myDate) 'myDate as Date()
Dim diff
diff = DateDiff("d",Date(),myDate)
If diff = 0 Then
dateClassName = "today" 'Its today!
Elseif diff = -1
dateClassName = "yesterday" 'The day after
Elseif diff > 0
dateClassName = "before" ' Still got time!
Else
dateClassName = "old" ' Old Event!
End If
End Function
<%
Dim className
className = "regular"
If DateDiff("d", Date(), DateSerial(2007,8,5)) >=0 Then
className = "redwhite"
ElseIf DateDiff("d", Date(), DateSerial(2007,8,4)) >=0 Then
className = "blackwhite"
End If
%>
295 ms totalt · 4 externa anrop · v20260731065814-full.a51de22e