var now = new Date();
now.setTime(now.getTime() - 36 * 3600 * 1000);
var dayno = now.getDay();
var date = now.getDate();
var monthno = now.getMonth();
var year = now.getYear();
year += (year < 1900) ? 1900 : 0;

var day = new Array();
day[0] = "Sunday";
day[1] = "Monday";
day[2] = "Tuesday";
day[3] = "Wednesday";
day[4] = "Thursday";
day[5] = "Friday";
day[6] = "Saturday";

var month = new Array();
month[0] = "January";
month[1] = "February";
month[2] = "March";
month[3] = "April";
month[4] = "May";
month[5] = "June";
month[6] = "July";
month[7] = "August";
month[8] = "September";
month[9] = "October";
month[10] = "November";
month[11] = "December";

document.write(day[dayno] + ", " + month[monthno] + " " + date + ", " + year);
