var currentTime = new Date()
var month = currentTime.getMonth()
var day = currentTime.getDate()
var year = currentTime.getFullYear()

if (month == 0) { var monthtext = "January" }
else if (month == 1) { var monthtext = "February" }
else if (month == 2) { var monthtext = "March" }
else if (month == 3) { var monthtext = "April" }
else if (month == 4) { var monthtext = "May" }
else if (month == 5) { var monthtext = "June" }
else if (month == 6) { var monthtext = "July" }
else if (month == 7) { var monthtext = "August" }
else if (month == 8) { var monthtext = "September" }
else if (month == 9) { var monthtext = "October" }
else if (month == 10) { var monthtext = "November" }
else if (month == 11) { var monthtext = "December" }
else { var monthtext = "" }
var thedate =  day + " " + monthtext + " " + year;
