Thanks for all the input, folks!!
Someone sent the following script to me. It works beautifully! Again,
thanks to all for your input.
Tom
Here's the script:
<H2>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!
http://javascript.internet.com -->
<!-- Begin
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","A ug","Sep","Oct","Nov","Dec");
function countup(yr,m,d) {
var today=new Date();
var todayy=today.getYear();
// Y2K Fix by Isaac Powell
//
http://onyx.idbsu.edu/~ipowell
if ((navigator.appName == "Microsoft Internet Explorer") && (todayy <
2000))
todayy="19" + todayy;
if (navigator.appName == "Netscape")
todayy=1900 + todayy;
var todaym=today.getMonth();
var todayd=today.getDate();
var todaystring=montharray[todaym]+" "+todayd+", "+todayy;
var paststring=montharray[m-1]+" "+d+", "+yr;
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1);
document.write ( " Today is " + difference + " ");
}
countup(1970,01,01); // Date in format: (year,month,day)
// End -->
</script>
</H2>
<!-- Script Size: 0.99 KB -->
Dr John Stockton <spam@merlyn.demon.co.uk> wrote in message news:<lzVFAXBtAa0AFw9D@merlyn.demon.co.uk>...[color=blue]
> JRS: In article <5bb7e7f3.0406161654.6357fb8b@posting.google.com >, seen
> in news:comp.lang.javascript, Tom <tomlacko@yahoo.com> posted at Wed, 16
> Jun 2004 17:54:03 :[color=green]
> >
> >I need a quick little scrpit to place on a web page that will count
> >how many days have passed since January 1, 1970. I have ZERO
> >experience writing ANY scripts. Anyone have any suggestions?[/color]
>
> The Web is international. Therefore you need to define whether you mean
> 1970-01-01 to be GMT, local to you, or local to the reader.
>
> You also should consider the meaning of "passed".
>
> At noon GMT on 1970-01-03 :
> one day had passed since Jan 1 GMT; it was called Jan 2 GMT
> two days had passed since Jan 1 0000h GMT; Jan 1 & Jan 2, GMT
> it is currently the Third Day, counting from the origin.
>
> IMHO, the easiest specification is that you want to show "the current
> day number, based on 1970 Jan 1 GMT/local/user being Day 0 or Day 1".
> There is no need to count anything.
>
> There are two sensible ways of solving your problem, AFAICS : learn some
> javascript, or purchase a script from a trustworthy source. For the
> actual algorithm ...[/color]