
Stamp = new Date();
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours >= 12) {
Time = " p.m. ";
}
else {
Time = " a.m. ";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = Stamp.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}
document.write(Hours + ":" + Mins + Time );

// STEP ONE: Put the following code in the BODY of your document

// Script Supplied by Dean Clamp
// To find more free cut and paste scripts online please visit http://www.x-lab.info/javascripts.html
// Remove these comments and feel the wrath on the day of reckoning.

// Script to display Todays Date
var month=new Array(12);	
month[1]="January";		
month[2]="February";
month[3]="March";
month[4]="April";
month[5]="May";
month[6]="June";
month[7]="July";
month[8]="August";
month[9]="September";
month[10]="October";
month[11]="November";
month[12]="December";

var the_day=new Date();				

var the_month=month[the_day.getMonth() + 1];
var the_date=the_day.getDate();
var the_year=the_day.getFullYear();
var the_daynum = the_day.getDay() + 1;

if(the_daynum==1) day = "Sunday";
if(the_daynum==2) day = "Monday";
if(the_daynum==3) day = "Tuesday";
if(the_daynum==4) day = "Wednesday";
if(the_daynum==5) day = "Thursday";
if(the_daynum==6) day = "Friday";
if(the_daynum==7) day = "Saturday";

var the_daysdate = (day + " " + the_date + " " + the_month + " " + the_year);

document.write( the_daysdate);
