Hmmm, this *is* a stupid problem. I think what happens is that ASP under the hood creates a string type for the expiredate variable, but that it sees it as a "real" date when you compare it directly with another date. It has always been unclear to me how ASP deals with variants that have some underlying value.
Anyway, you can fix it by "casting" the expiredate to a date, using the DateValue method. This will work:
Code:
thedate = Date()
expiredate = DateValue("08/03/2003")
If thedate < expiredate Then
Response.Write("Not Expired")
Else
Response.Write("You have Expired")
End If
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.