var currentTime = new Date();

var day = currentTime.getDate();
var month = currentTime.getMonth() + 1;
var year = currentTime.getFullYear();

var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()

if (minutes < 10){
    minutes = "0" + minutes
}

var monthw="";

if(month == 1) monthw = "January";
if(month == 2) monthw = "February";
if(month == 3) monthw = "March";
if(month == 4) monthw = "April";
if(month == 5) monthw = "May";
if(month == 6) monthw = "June";
if(month == 7) monthw = "July";
if(month == 8) monthw = "August";
if(month == 9) monthw = "September";
if(month == 10) monthw = "October";
if(month == 11) monthw = "November";
if(month == 12) monthw = "December";


function DateAndTimeNow() {

    document.write('<a id="theTime">' + day + " " + monthw + " " + year + " ");
    document.write(hours + ":" + minutes + " " + '</a>');    
}


