ho sbagliato, questo funge
codice:
ora=int(datepart("h",time()))

if ora<8 or ora>21 then
response.Write("è notte")
elseif ora>=8 and ora<=18 then
response.Write("è giorno")
elseif ora>18 and ora<=21 then
response.Write("è sera")
end if