<script>
function checkdate()
{
var d=new Date();
alert("hours:"+d.getHours());
alert("minutes:"+d.getMinutes());
alert("year:"+d.getYear());
alert("month:"+d.getMonth());
alert("date:"+d.getDate());
alert("day:"+d.getDay());
alert("seconds:"+d.getSeconds());
alert("time:"+d.getTime());
}
</script>
<body>
<input type="button" value="check timing" onclick="checkdate()">
</body>
0 comments: