Hi, I would like to change the date of 'Last Updated' on my web site automatically. With the JavaScript command "document.lastModified", I get something like Last Updated: 09/27/2001 13:00:35 But I would only like to have the date, and not the hours: Last Updated: 27/09/2001 or even better: Last Updated: September 27, 2001 Which JavaScript command should I introduce? Thank You
tedster
1:16 pm on Sep 27, 2001 (gmt 0)
Hi tommydc, and welcome to the forums at Webmaster World,
Here's a link to a page with one method: [chami.com...]
andrey_sea
9:44 pm on Sep 27, 2001 (gmt 0)
It would seem like the alternative would be to write something simple like this:
var sDate = document.lastModified(); document.write("Last updated on: " + sDate.substring(0,10));