last updated on dd/mm/yyyy - how do i make that automatic? (Posted by micol)
One way to do that is with Frontpage. I don't know if there is just a standard tag for for, but this is how Frontpage does it:
<!--webbot bot="Timestamp" startspan s-type="REGENERATED"
s-format="%m/%d/%y" -->10/24/99<!--webbot bot="Timestamp"
i-checksum="14013" endspan -->
I don't know if that will work independent of Frontpage though.
micol posted this at 01:58 — 25th October 1999.
They have: 8 posts
Joined: Sep 1999
some time ago, I saw a code I could put on my page, so that instead of everytime I update my page I would have to change the update date manually, it would be done with that code...
can anybody help me?
----------
Micol
Anonymous posted this at 02:52 — 25th October 1999.
They have: 5,633 posts
Joined: Jan 1970
Here is some code that I used a long time ago. You may need to play around with it a little.
function dateAddon(day) {
if (day == 1 ¦¦ day == 21 ¦¦ day == 31) {
return 'st';
}
else if (day == 2 ¦¦ day == 22) {
return 'nd';
}
else {
return 'th';
}
}
var documentDetails = new Date(document.lastModified);
var dayList = new Array('Sunday','Monday','Tuesday',
'Wednesday','Thursday','Friday','Saturday');
var monthList = new Array('January','February','March',
'April','May','June','July','August','September','October','November','December');
document.write(dayList[documentDetails.getDay()] + " " + documentDetails.getDate() +
dateAddon(documentDetails.getDate()) + " " + monthList[documentDetails.getMonth()] +
", 19" + "" + documentDetails.getYear());
----------
[email protected]
http://go.to/hass
JP Stones posted this at 20:31 — 25th October 1999.
They have: 2,390 posts
Joined: Nov 1998
...or use ssi:
<!--#config timefmt="%B %dth, %Y" -->
<!--#flastmod file="index.html" -->
JP
----------
[red]The Next Step in Website Development [/red] - http://www.what-next.com
The Webmaster Promotion and Resource Center
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.