var d = Date(Date.now()); a = d.toString() // Printing the current date document.write("The current date is: " + a) // The current date is: Fri Jun 22 2018 10:54:33