thedate = new Date();
theday = thedate.getDay();
themonth = thedate.getMonth();
theweekday= thedate.getDate();
weekday= theweekday;
thetheyear= thedate.getYear();
theyear=thedate.getFullYear()

if(theday == 0)
        day = " Sunday, "      

else if(theday == 1)
      day = " Monday, "

else if(theday == 2)
        day = " Tuesday, "   

else if(theday == 3)
        day = " Wednesday, "   

else if(theday == 4)
        day = " Thursday, "

else if(theday == 5)
        day = " Friday, "

else if(theday == 6)
        day = " Saturday, "

if(themonth == 0)
         month = "January "

else if(themonth ==1)
         month = "February "

else if(themonth ==2)
        month = "March "

else if(themonth ==3)
       month = "April "

else if(themonth ==4)
         month = "May "

else if(themonth ==5)
         month = "June "

else if(themonth ==6)
         month = "July "

else if(themonth ==7)
       month = "August "

else if(themonth ==8)
      month = "September "

else if(themonth ==9)
     month = "October "

else if(themonth ==10)
     month = "November "

else if(themonth ==11)
     month = "December "

document.write(day+ theweekday+". "+ month+theyear);
