I looked up what I could have done wrong but none of the given solutions solved the problem. Basically I want the date in the tag with the respective id but it does not work. Any ideas?
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body style="background:url('../static/images/bg.jpeg') no-repeat center center fixed; background-size: cover;">
    <div style="background-color:black; height:200px; width:700px; position:center; color:green; overflow-y:scroll; margin:auto; margin-top:40px;">
        <a style="font-size:20px; font-weigth:bold; font-family:Lucida Console;">Logs:</a>
        <p><a id="logentry"></a>{{lomes}}</p>
    </div>
    <script type="text/javascript">
    new Date(day, month, year, hours, minutes, seconds)
    document.getElementById("logentry").innerHTML = Date();
    </script>
</body>
</html>
Solution: I used the code I found here and then did
document.getElementById("logentry").innerHTML = today;
 
     
     
    