Log in

View Full Version : Code for "Last Modifed Date"



fareed7865
04-09-2008, 07:19 AM
Hi All,
Just want to ask if any of ye know the Style Code for the following:

<p class="datestamp"><em>Last modified: 08/04/2008</em></p>

I saw this in many website's html part. obviously "datestamp" is a class already defined in the Stylesheet. I wonder how exactly it is defined.

Furthermore, is there any other code that I can use which can display the today's date every day?
(even if u know how to do this in Java, do send me.)
Cheers
Fareed

codeexploiter
04-09-2008, 07:41 AM
A CSS class can have any style information that you wish. There is no pre-defined format for the last modified date section in a page. The format entirely depends upon the web page author, it is better if you choose a color scheme for the section which is compatible with the color scheme of the website.

Another last modified date script (http://www.quirksmode.org/js/lastmod.html) with good explanation