Problem:
I want to make it that when a user opens this page it will be displayed LIVE FDP REPORT AS OF {Todays date time}
the title that needs to have todays date
I tried to use Javascript to implement this:
script<
document.getElementById("current_date").value = Date();
></script>
<input id="current_date" readonly></>
Solution:
<!DOCTYPE html>
<html>
<head>
<title>LIVE FDP REPORT AS OF <span id="current_date"></span></title>
</head>
<body>
<!-- date -->
<script>
document.getElementById("current_date").textContent = new Date().toLocaleString();
</script>
</body>
</html>