I have the following script:
document.write('<p><span id="date-time">', new Date().toLocaleString(), '<\/span>.<\/p>')
if (document.getElementById) onload = function () {
setInterval("document.getElementById ('date-time').firstChild.data = new Date().toLocaleString()", 50)
}
It displays:
Friday, January 09, 2015 12:20 PM.
How can I display tomorrow's date in the same format leaving the time off?