How do i add a time stamp to each hyperlink?

S

Stefan

Hi,

I'd like to add automatically a date & time stamp to a webpage below links
to files (.pdf, .xls, .html) on the local file server. The date & time should
represent the file-save date & time.

Sample.xls
Updated Sep.24 2004 6:49 PM

Thank you for your help.

Stefan
p.s
Is it somehow possible to detect in which time zone ...6:49... the save took
place?¿
 
J

Jim Buyens

Howdy.

This requires some programming on the Web server. For
example, with ASP, add these lines to the <head> section:

<%
dim fso
dim fin
set fso = _
server.createobject("scripting.filesystemobject")
%>

Then add a block of lines like this each place you want a
file date to appear.

<%
Set fin = fso.GetFile(server.mappath("Sample.xls"))
Response.write fin.DateLastModified
%>

And add these lines just before the </body> tag.

<%
set fin = nothing
set fso = nothing
%>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Top