
var today = new Date();
var dayOfWeek = today.getDay();
var thisMonth = today.getMonth();

<!--Convert the numeric representation of the day into text.-->
var day = new Array("Sunday, ", "Monday, ", "Tuesday, ", "Wednesday, ", "Thursday, ", "Friday, ", "Saturday, ");
dayOfWeek = day[dayOfWeek];

<!--Convert the numeric representation of the month into text.-->
var month = new Array("January ", "February ", "March ", "April ", "May ", "June ", "July ", "August ", "September ", "October ", "November ", "December ");
thisMonth = month[thisMonth];

var dateOfMonth = today.getDate();
var fullYear = today.getFullYear();
var hours = today.getHours();
var minutes = today.getMinutes();

<!-- Convert time to am and pm -->
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += (hours >= 12) ? " pm" : " am"

var DateToday = dayOfWeek + thisMonth + dateOfMonth + ", " + fullYear + " " + timeValue


