Coding for Date Object in JavaScript ... with 'document.wtrite' tag .

Coding for Date Object in JavaScript... with 'document.wtrite' tag .


Example of getDate() Tag:-

<html>

<head>

 <script language="javascript">

function ab()

{

var x=new Date();

var y=x.getDate();

document.write("Today's Day number  is:- "+y);


}

</script>

</head>

<body>

<form>

<input type="button" value="Click For view today's day number only" onclick="ab()">

</input>

</body>

</html>


Output looks like:-
Today's Day number is:- 9


1 comment: