var now = new Date(); var yr = now.getYear(); var mName = now.getMonth() + 1; var dName = now.getDay() + 1; var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate(); if(dName==1) Day = "sunday"; if(dName==2) Day = "monday"; if(dName==3) Day = "thursday"; if(dName==4) Day = "wednesday"; if(dName==5) Day = "tuesday"; if(dName==6) Day = "friday"; if(dName==7) Day = "saturday"; if(mName==1) Month="january"; if(mName==2) Month="february"; if(mName==3) Month="March"; if(mName==4) Month="April"; if(mName==5) Month="May"; if(mName==6) Month="June"; if(mName==7) Month="July"; if(mName==8) Month="August"; if(mName==9) Month="September"; if(mName==10) Month="October"; if(mName==11) Month="November"; if(mName==12) Month="December"; var todaysDate =(" " + Month + ", " + dayNr + " " + "2001" + "       "); document.open(); document.write(""+todaysDate+"");