// paste this into your archive template, and remember // there should be absolutely nothing else in your archive template // moname[0] = "January" ... var moname = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") // tmp="05/01/2001 - 05/31/2001" tmp="02/24/2002 - 03/02/2002"; // get the starting month number mo=tmp.substring(0,2); // get the starting day day=tmp.substring(3,5); // get the starting year yr=tmp.substring(6,10); // change month number to name - remember January = 0 mo=moname[mo - 1]; // if day is 01 to 09, take just the second character if (day<10) { day=day.substring(1) } // set date to "May 8, 2001" newdate=mo+" "+day+", "+yr; // tell the script to write the archive link in the main page document.write(""); // tell the script to write the date document.write(newdate); // close the link tag and go to a new line document.write("
");