Javascript to display date and time

/*This script is used to display  the current date and time*/

[js]
<html>
<body>
<script type="text/javascript">
var date=new Date();
document.write(date);
</script>
</body>
</html>
[/js]

The output will be in the following format:Wed Jul 21 2010 15:14:05 GMT+0530 (India Standard Time)

No comments yet.

Leave a comment

Request a Free SEO Quote