0
1.3kviews
Write a JavaScript program to display today's date, time and today's day (eg. Sunday, Monday, ...).
1 Answer
0
13views

Program :

<!DOCTYPE html>
<html>
<header><title>Today's Date, Day & Time</title></header>
<body>
<center>
<script>
var currentDate = new Date();
date = currentDate.getDate();
month = currentDate.getMonth() + 1;
year = currentDate.getFullYear();
document.write("<h1> Date: " + date + "/" + month + "/" + year+"</h1>");
document.write("<br><br>");
var day = currentDate.getDay();
days = new …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.