var now= new Date(); var text=""; if (now.getMonth()==0) {text+="January"} if (now.getMonth()==1) {text+="February"} if (now.getMonth()==2) {text+="March"} if (now.getMonth()==3) {text+="April"} if (now.getMonth()==4) {text+="May"} if (now.getMonth()==5) {text+="June"} if (now.getMonth()==6) {text+="July"} if (now.getMonth()==7) {text+="August"} if (now.getMonth()==8) {text+="September"} if (now.getMonth()==9) {text+="October"} if (now.getMonth()==10) {text+="November"} if (now.getMonth()==11) {text+="December"} text+=" "+now.getDate()+", " if (now.getYear()>50) { //text+="19" } else { //text+="20" } //text+=now.getYear()+""; text+='2008'+""; document.write(text);