When I try to go to my forum, the following message appears:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'internationalDateTime'
/[my site name]/Forum/common.asp, line 469
So what is my problem? How do I fix it? I tried searching this forum but I couldn't find anything, so I decided to post my question.
It seems to be referring to this section of the code:
'If the cookie is older than 5 mintues set a new one
If IsDate(Request.Cookies(strCookieName & "LV")("LV")) Then
If CDate(Request.Cookies(strCookieName & "LV")("LV")) < DateAdd("n", -5, Now()) Then
Response.Cookies(strCookieName & "LV")("LV") = internationalDateTime()
Response.Cookies(strCookieName & "LV").Expires = DateAdd("yyyy", 1, Now())
End If
'If there is no date in the cookie or it is empty then set the date to now()
Else
[469] Response.Cookies(strCookieName & "LV")("LV") = internationalDateTime()
Response.Cookies(strCookieName & "LV").Expires = DateAdd("yyyy", 1, Now())
End If
So yeah, how should I go about fixing this?