<style>
* {
margin:0px;
padding:0px;
}
</style>
</head>
<body>
<div id="d1" ></div>
</body>
</html>
<script>
d1 = document.getElementById("d1");
function d3(){
var time = new Date();
var year = time.getFullYear();
var month = time.getMonth()+1;
var day = time.getDate();
d1.innerHTML=(year, month, day, time);
}
window.setInterval("d3()", 1000);
</script>