PDA

View Full Version : Having the date on my website?


LeoNeo
06-23-2006, 03:00 PM
HI all,

How can I get the date to be on my website and update itself.

an example is here...its at the top left of the content under the logo.

http://www.greatmagazines.co.uk

thanks in advance!

:?:

LeoNeo
06-26-2006, 07:49 AM
Anyone?

:?:

edbr
06-26-2006, 08:46 AM
use javascript

edbr
06-26-2006, 08:51 AM
here is a free one.
<SCRIPT LANGUAGE="Javascript"><!--

// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts toaceDay!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************

var aceDate=new Date()
var aceYear=aceDate.getYear()
if (aceYear < 1000)
aceYear+=1900
var aceDay=aceDate.getDay()
var aceMonth=aceDate.getMonth()+1
if (aceMonth<10)
aceMonth="0"+aceMonth
var aceDayMonth=aceDate.getDate()
if (aceDayMonth<10)
aceDayMonth="0"+aceDayMonth
document.write("<font color='000000' face='Arial' size='2'>"+aceMonth+"/"+aceDayMonth+"/"+aceYear+"</font></small>")

//--></SCRIPT>