daynames = new Array();

daynames[0] = "Sunday";
daynames[1] = "Monday";
daynames[2] = "Tuesday";
daynames[3] = "Wednesday";
daynames[4] = "Thursday";
daynames[5] = "Friday";
daynames[6] = "Saturday";


monthnames = new Array();

monthnames[0] = "January";
monthnames[1] = "February";
monthnames[2] = "March";
monthnames[3] = "April";
monthnames[4] = "May";
monthnames[5] = "June";
monthnames[6] = "July";
monthnames[7] = "August";
monthnames[8] = "September";
monthnames[9] = "October";
monthnames[10] = "November";
monthnames[11] = "December";

nowtime = new Date();

hrs = nowtime.getHours();
mins = nowtime.getMinutes();


if (hrs < 10) {
    hrs = "0" + hrs; 
}

if (mins < 10) {
    mins = "0" + mins;
}


day = nowtime.getDay();
month = nowtime.getMonth();
dayno = nowtime.getDate();
year = nowtime.getYear();

if (year < 1900) {
    year = year + 1900;
}

// f_time = "" + hrs + ":" + mins + ", " + daynames[day] + " " + monthnames[month] + " " + dayno + " " + year + "";

f_time = "" + daynames[day] + ", " + dayno + " " + monthnames[month] + " " + year + "";


document.write(f_time);