Forum Moderators: phranque

Message Too Old, No Replies

Options for timestamp

SSI, CGI, timestamp

         

erika1959

10:00 am on Feb 9, 2003 (gmt 0)

10+ Year Member



I want to add a timestamp which search engines will pick up and use help determine the freshness of my content.

I'm currently using a Javascript to produce a timestamp, which works fine visually, but I don't imagine the search engines are using it to much effect.

What's the best option for me to use, given the fact that I'm using FrontPage, where it's difficult to use an .htaccess file which will parse .shtml files that I'd use with SSI except in the cgi bin?

ukgimp

10:44 am on Feb 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have ASP or PHP at your disposal?

You need server side scritping capabilty to do what you wish. If you have either of these it is pretty easy.

In php:

<? print date("F jS, Y");?>

mm/dd/yyyy
<? print date("m/j/Y");?>

mm/dd/yy
<? print date("m/j/y");?>

In ASP:

4guysfromrolla.com/webtech/faq/Intermediate/faq2.shtml