function writedate() { var dayName = new Array ("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat") var monName = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec") var dayType = new Array ("st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "st") var now = new Date // // format: ddd XXth mmm yyyy eg Wed 29th Sep 2004 //document.write(dayName[now.getDay()] +" "+ now.getDate()+dayType[now.getDate()-1]+" //"+monName[now.getMonth()]+" "+now.getFullYear()); // // format: XX mmm yyyy eg 29 Sep 2004 document.write(now.getDate()+" "+monName[now.getMonth()]+" "+now.getFullYear()); // }