Как это сделать
<html> <body> <button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Дата и Время</button> <p id="demo"></p> </body> </html>