Skip to content

Commit aca2a87

Browse files
committed
date function
1 parent be30b8d commit aca2a87

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

JavaScript Date Output.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<body>
5+
6+
<h2>JavaScript new Date()</h2>
7+
8+
<p id="demo"></p>
9+
10+
<script>
11+
var d = new Date();
12+
document.getElementById("demo").innerHTML = d;
13+
</script>
14+
15+
</body>
16+
17+
</html>

0 commit comments

Comments
 (0)