Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html lang="en-US">
<head>
</head>
<body>
<div id="test"></div>
<script type="text/javascript">
var d = new Date();
d.setFullYear(d.getFullYear() - 1);
document.getElementById("test").innerText = d;
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.9K 508