Cdate problem
har följande script som en incfil på en sida:if Date >= CDate("2002-28-10") and Date <= CDate("2002-03-11") then
bgbild = "tjo"
elseif Date >= CDate("2002-11-04") and Date <= CDate("2002-11-30") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
elseif Date >= CDate("2002-12-01") and Date <= CDate("2002-12-07") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
elseif Date >= CDate("2002-11-04") and Date <= CDate("2002-11-30") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
elseif Date >= CDate("2002-12-01") and Date <= CDate("2002-12-07") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
elseif Date >= CDate("2002-12-08") and Date <= CDate("2002-12-12") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
elseif Date >= CDate("2002-12-13") and Date <= CDate("2002-12-13") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
elseif Date >= CDate("2002-12-14") and Date <= CDate("2002-12-21") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
elseif Date >= CDate("2002-12-22") and Date <= CDate("2002-12-23") then
bgbild = "bilder/bakgrund/dynamiska/*.gif"
else
bgbild = ""
end if
men får följande felmeddelande:
Feltyp:
Körningsfel i Microsoft VBScript (0x800A000D)
Inkompatibla typer: 'CDate'
/mg_test/ett/inc_bgbild.asp, line 4
där line4 är: if Date >= CDate("2002-28-10") and Date <= CDate("2002-03-11") then
vad har jag gjort för fel?
