/* 
Author: 		Rene Matchette
Date:				2001.09.09
Comments: 	I wanted to use a date format that was more user-
            friendly to an international audience. 
		26Jan2003 -- For the MedicalQigong.org web site I commented out the
		time. 

		IE 5.x, 6.x renders the date properly.
		Opera 5.x does strange things to the date / time format. 
		
This script parses the document.lastModified property into the format:

	yyyy.mm.dd tt:tt:tt	format
	2001.06.19 15:32:49	example

The native format of the lastModified property is:

	mm/dd/yyyy tt:tt:tt	format
	09/09/2001 11:30:42	example

           1         2	parsing guide
 012345678901234567890 

I found the inspiration for this code at: 
http://www.praestkjaer.dk/gb/2000java.htm 
*/

	// equate lastModified to variable called lastmod
lastmod = document.lastModified;

	// define month as characters 0 to 2 of lastmodified property
month = lastmod.substring(0, 2);

	// define day as characters 3 to 5 of lastmodified property
day = lastmod.substring(3, 5);

	// define year as characters 6 to 10 of lastmodified property
year = lastmod.substring(6, 10);

	// define time as characters 11 to 19 of lastmodified property
// time = lastmod.substring(11, 19);


	// concatenate lastmoddate in yyyy.mm.dd tt:tt:tt format, 
	// and write to document
lastmoddate = year + "." + month + "." + day //+ " " + time;
document.write(lastmoddate);

