﻿
print1="";
print2="";
print3="";
print4="<sup>th</sup>";
today = new Date();
weekday = today.getDay();
if (weekday == 6) print1='Saturday';
if (weekday == 0) print1='Sunday';
if (weekday == 1) print1='Monday';
if (weekday == 2) print1='Tuesday';
if (weekday == 3) print1='Wednesday';
if (weekday == 4) print1='Thursday';
if (weekday == 5) print1='Friday';
month = today.getMonth();
if (month == 0) print2='January';
if (month == 1) print2='Febuary';
if (month == 2) print2='March';
if (month == 3) print2='April';
if (month == 4) print2='May';
if (month == 5) print2='June';
if (month == 6) print2='July';
if (month == 7) print2='August';
if (month == 8) print2='September';
if (month == 9) print2='October';
if (month == 10) print2='November';
if (month == 11) print2='December';
date = today.getDate();
if (date == 1) print4= '<sup>st</sup>';
if (date == 2) print4= '<sup>nd</sup>';
if (date == 3) print4= '<sup>rd</sup>';
if (date == 11) print4= '<sup>st</sup>';
if (date == 12) print4= '<sup>nd</sup>';
if (date == 13) print4= '<sup>rd</sup>';
if (date == 21) print4= '<sup>st</sup>';
if (date == 22) print4= '<sup>nd</sup>';
if (date == 23) print4= '<sup>rd</sup>';
if (date == 31) print4= '<sup>st</sup>';
year = (today.getYear() + 1900);
var bName = navigator.appName; 
if (bName == "Microsoft Internet Explorer") year = (year - 1900);
var out_txt = date+""+print4+" "+print2+" "+year;
var my_div = document.getElementById("current_date");
my_div.innerHTML = out_txt;
//document.write (' ', date,print4,' ',print2,' ',year);

