Forum : java
Brief description  about Online courses   join in Online courses
View ganesh  pradhan 's Profile

java

The code which I have written below i want to see the effect in the body but it is desable pls let me know the effect ,what is code for this



<html>
<body>
<title>ganesh</title>
<script language="text/javascript">

var now = new Date();
var Hour = now.getHours();
var minute = now.getminutes();
var second = now.getsecond();
var monthnumber = now.getMonth();
var monthday = now.getDate();
var year = now.getFully=Year();

</script>
</body>
</html>
Asked by ganesh pradhan | Aug 19, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Ganesh,

<html>
<title>ganesh</title>
<body>
<script language="javascript" type="text/javascript">

var now = new Date();
var Hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
var monthnumber = now.getMonth();
var monthday = now.getDate();
var year = now.getFullYear();

alert(Hour);
alert(minute);
alert(second);
alert(monthnumber);
alert(monthday);
alert(year);

</script>
</body>
</html>


check the above code.
Aug 19, 2010