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

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




➡️ Example of Date()   Tag:-


<html>
<head>
 <script language="javascript">
function ab()
{
var x=new Date();

document.write("Today's day, month, date , year & time also is:-<br><br> "+x);

}
</script>
</head>
<body>
<form>
<input type="button" value="Click For view today's Date" onclick="ab()">
</input>
</body>
</html>


Output looks like as:-
Today's day, month, date , year & time also is:-

Tue Jun 09 2020 16:08:08 GMT+0530 (India Standard Time)








No comments:

Post a Comment