// JavaScript Document
//Time Of The Day Start
var day = new Date();
var hr = day.getHours();

if (hr <= 11)
{
document.write("Good morning");
}
else if (hr > 11 && hr < 17) 
{
document.write("Good afternoon");
}
else
{
document.write("Good evening");
}
//Time Of The Day Finish
document.write(" / ");
//Exact Time start
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
if (minutes < 10){
minutes = "0" + minutes
}
document.write(hours + ":" + minutes + "")
if(hours > 11){
document.write("pm")
} else {
document.write("am")
}
//Exact Time Finish
//-->
document.write(" / ");

// Todays Date Start 
// Get today's current date.
var now = new Date();
// Array list of days.
var days = new Array('Sun','Mon','Tues','Wed','Thurs','Fri','Sat');
// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}
// Join it all together
today =  days[now.getDay()] + " " +
		date + " " +
		 months[now.getMonth()];
// Print out the data.
document.write(today);
//Todays Date Finish