d = new Date(); document.write(d.toLocaleDateString() + " - " + d.toLocaleTimeString());