automatically updated time and date on my website

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm new to this and not very confident so if you can help, please keep it
simple. I have made a website for the school I work in and would like to know
if there is a simple way of making the date that is on the home page,
auttomatically show as the current date. I only update the site from time to
time with new work from children and school events so it can appear out of
date. I could just remove the date I suppose but would rather keep it.
Thanks
 
Google for "current date script" and you'll come up with many ideas,
including:
http://javascript.internet.com/clocks/current-date.html
--
===
Tom [Pepper] Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
===
| I'm new to this and not very confident so if you can help, please keep it
| simple. I have made a website for the school I work in and would like to
know
| if there is a simple way of making the date that is on the home page,
| auttomatically show as the current date. I only update the site from time
to
| time with new work from children and school events so it can appear out of
| date. I could just remove the date I suppose but would rather keep it.
| Thanks
 
I've used this 1 for years. Just go to code view and paste in where
you want the date.
**************
<center>
<font face="arial" size="4"><B>
<SCRIPT LANGUAGE="JavaScript1.2">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
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) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End --></font>
</SCRIPT>
</center>
**************
http://search.internet.com/www.javascriptsource.com
They have many more options.
Tom J
 
Thanks Tom. Just the job.

Tom J said:
I've used this 1 for years. Just go to code view and paste in where
you want the date.
**************
<center>
<font face="arial" size="4"><B>
<SCRIPT LANGUAGE="JavaScript1.2">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
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) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End --></font>
</SCRIPT>
</center>
**************
http://search.internet.com/www.javascriptsource.com
They have many more options.
Tom J

richard said:
I'm new to this and not very confident so if you can help, please
keep it
simple. I have made a website for the school I work in and would
like to know
if there is a simple way of making the date that is on the home
page,
auttomatically show as the current date. I only update the site from
time to
time with new work from children and school events so it can appear
out of
date. I could just remove the date I suppose but would rather keep
it.
Thanks
 
Back
Top