Back to main page!

Knowledgebase Home Knowledgebase Home
Search the Knowledgebase Browse by Category
How do I place a date stamp on my page?
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful
"Date stamps" that change every day are obnoxious, of course, if your page is not really updated daily. Your users will figure that out, and they will tune you out.

However, if you are making daily updates, you can save yourself a bit of time and effort by using the following server side include directive, which will work on just about any web hosting account, with the exception of some free accounts:

<!--#echo var="DATE_LOCAL"-->

The date and time will appear correct for the time zone in which the server operates. You can also output the current Greenwich Mean Time and set the date and/or time format you wish to use. For instance, you can display the date only (without the time) by setting the date format like this:

<!--#config timefmt="$y $m $d"-->

For more information, see the excellent SSI Developer site.

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
No attachments were found.

Home | Web Design | Print Advertisements | Banner Design | Other Services


Copyright © 2003 Digital Arts Group @ FrankGonzalez.com. All Rights Reserved
About Us | Disclaimer | Privacy Policy | Terms of Use | Design Team | Sitemap