Hello Experts
I have following codes
<html>
<head>
<script language="Javascript">
function showdate()
{
var currentTime = new Date()
var month = currentTime.getMonth() +1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
var seconds = currentTime.getSeconds()
alert(month + "/" + day + "/" + year +"\n" + hours+ ":"+ minutes+ ":"+ seconds)
}
</script>
</head>
<body onload="showdate()">
</body>
</html>
the output is as
03/06/2012
14:41:46
But I want to get following result
Tuesday March 06, 2012 02:41:46 PM
Please modify my codes or suggest some others.
Thanks in advance