 var CurDate;
 var CurMonth;
 var CurYear;
 var CurHour;
 var CurDay;
 var CurWeekDay;
 var CurrentYear;
 var PresentDate;
 
 now = new Date();
 CurMonth = now.getMonth();
 CurYear = now.getYear();
 CurDay = now.getDay();
 CurHour = now.getHours();
 CurDate = now.getDate(); //this contains current date
 
 //assign the weekday name
 if (CurDay == "0") {CurWeekDay = "Sunday";}
 if (CurDay == "1") {CurWeekDay = "Monday";}
 if (CurDay == "2") {CurWeekDay = "Tuesday";}
 if (CurDay == "3") {CurWeekDay = "Wednesday";}
 if (CurDay == "4") {CurWeekDay = "Thursday";}
 if (CurDay == "5") {CurWeekDay = "Friday";}
 if (CurDay == "6") {CurWeekDay = "Saturday";}
 //CurWeekDay contains the current weekday
 
 //assign the month name
 if (CurMonth == "0") {CurrentMonth = "January";}
 if (CurMonth == "1") {CurrentMonth = "February";}
 if (CurMonth == "2") {CurrentMonth = "March";}
 if (CurMonth == "3") {CurrentMonth = "April";}
 if (CurMonth == "4") {CurrentMonth = "May";}
 if (CurMonth == "5") {CurrentMonth = "June";}
 if (CurMonth == "6") {CurrentMonth = "July";}
 if (CurMonth == "7") {CurrentMonth = "August";}
 if (CurMonth == "8") {CurrentMonth = "September";}
 if (CurMonth == "9") {CurrentMonth = "October";}
 if (CurMonth == "10") {CurrentMonth = "November";}
 if (CurMonth == "11") {CurrentMonth = "December";}
 //CurrentMonth contains the current month
  
 if (CurYear < 1900) {CurrentYear = (CurYear + 1900);}
 else {CurrentYear = CurYear;}

 //PresentDate contains the date in the format e.g. Tuesday 24, 1973. 
 
 PresentDate = (CurrentMonth + " " + CurDate +", " + CurrentYear);