Fenster
09-14-2003, 06:43 AM
Here is the script:
<script language="VBscript">
IF Datediff("d", Document.LastModified, NOW) < 1 THEN
Document.Write("Last updated: Today")
ELSE
Document.Write("Last updated: " & Document.LastModified)
END IF
</script>
What it does is just showing "Today" if the page been updated the same day its been viewed. What I want to do is to limit "Document.LastModified" to just the date "09/13/2003" and not "09/13/2003 22:39:15" so it does not include the time. I know how to do this in Java but Im new to VB so any help would be appreciated.
Thanks in advance
<script language="VBscript">
IF Datediff("d", Document.LastModified, NOW) < 1 THEN
Document.Write("Last updated: Today")
ELSE
Document.Write("Last updated: " & Document.LastModified)
END IF
</script>
What it does is just showing "Today" if the page been updated the same day its been viewed. What I want to do is to limit "Document.LastModified" to just the date "09/13/2003" and not "09/13/2003 22:39:15" so it does not include the time. I know how to do this in Java but Im new to VB so any help would be appreciated.
Thanks in advance