Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving date/time from a webpage

Status
Not open for further replies.

Chris,

There is no way to do this with HTML alone. As Chris points out, you will have to use another language.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
If you can use Server Side Includes in your pages and your server supports this tag, you can get the date/time an HTML page was last modified with one of these:
Code:
<!--#fsize virtual="[i]filename[/i]" --> 
<!--#fsize file="[i]filename[/i]" -->
If you need to get it into a javascript routine, just put that into a div or span and use the innerText property to get it out again.

Server Side Inludes Reference

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top