document.write(writeDateStamp());

function writeDateStamp(){
	var montharray = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"];
	var daysofweek = ["Sun.","Mon","Tues","Wed","Thurs","Fri","Sat"];
	var thisdate="";			 // String to hold full date string
	var currentday = new Date();	         // current date
	var daynumber = currentday.getDay(); 	 // number of day of week (0-6)
	var month = currentday.getMonth() 	 // number of month
	var dateinmonth = currentday.getDate();  // date number 1-31

	var fullyear = currentday.getYear();     // year
	if (fullyear<1900) fullyear=fullyear+1900;

	var daysuffix = "";
	switch(dateinmonth) {
		case 1:
		case 21:
		case 31:
			daysuffix= "st";
			break;
		case 2:
		case 22:
			daysuffix ="nd";
			break;
		case 3:
		case 23:
			daysuffix ="rd";
			break;
		default:
			daysuffix = "th";
	}

	thisdate = daysofweek[daynumber] + ', ' + montharray[month] + ' ' + dateinmonth + ', ' + fullyear;

	return thisdate;
}