Forum Moderators: mack
<!--#echo var="DATE_LOCAL" --> The above code will insert the local date.
Of course you could use any server side scripting language as well.
Andreas
[edited by: andreasfriedrich at 2:58 pm (utc) on Feb. 21, 2003]
<script language="JavaScript" type="text/javascript">
<!--
var date = new Date();
var d = date.getDate();
var day = (d < 10)? '0' + d : d;
var m = date.getMonth() + 1;
var month = (m < 10)? '0' + m : m;
var yy = date.getYear();
var year = (yy < 1000)? yy + 1900 : yy;
document.write(day + "/" + month + "/" + year);
//--></script>
A search of Google for javascript date scripts ( [google.com...] )will return many other useful scripts that will format the output to your requirements.
<SCRIPT LANGUAGE="JavaScript1.2">
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
</script>
The only important thing really is that the script is between the <body> tags of your page. If you are using a WYSIWYG editor like Frontpage you will need to look at the source code.
If this doesn't make sense, sticky me or post and I will talk you through it.
I'm going to point you back to this long thread, as there was some code examples included there:
[webmasterworld.com...]