<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Date function in Javascript</title>
<script src="https://d3js.org/d3.v4.min.js" type="text/javascript"></script>
</head>
<body>
<p>Date function in Javascript</p>
<script>
// Date.now() gives only milliseconds
//Date(Date.now());
var d = Date();
a = d.toString();
document.write("Current date is:" + a);
</script>
</body>
</html>
No comments:
Post a Comment