<html>
<head>
<script>
function ShowLocalDate()
{
var dNow = new Date();
var localdate= (dNow.getMonth()+1) + '/' + dNow.getDate() + '/' + dNow.getFullYear() + ' ' + dNow.getHours() + ':' + dNow.getMinutes();
document.getElementById("currentDate").innerHTML=localdate;
}
</script>
</head>
<body>
<label id="currentDate"></p>
<button type="button" onclick="ShowLocalDate()">Show Local DateTime</button>
</body>
</html>