Hi,<BR><BR>I have this piece of VBScript in an .asp file which is meant to decide whether the XML nodes selected in contentList have matured or expired. "matured" and "expired" are attributes of a particular node and take the format dd/mm/yyyy (they are dates):<BR><BR>For i=0 to (contentList.length - 1)<BR> matures = contentList.item(i).getAttribute("matures")<BR> expires = contentList.item(i).getAttribute("expires")<BR> If matures &#060; date() And date() &#060; expires Then<BR> contentList.item(i).setAttribute("visible") = "True"<BR> Else<BR> contentList.item(i).setAttribute("visible") = "False"<BR> End If<BR>Next<BR><BR>Although this is valid VBScript and "works" (i.e. runs), IIS does not recognise "matures" and "expires" as dates. I can&#039;t force IIS to define them as dates (eg. Dim xyz As Date) as with Visual Basic becuase ASP variables are varients. Is there a function I can use to convert these variables to dates???<BR><BR>Thanks,<BR><BR>Chris