Hello, can someone help to create a code for text widget to show a date for the next day?
will apreciate,
Igor
Hello, can someone help to create a code for text widget to show a date for the next day?
will apreciate,
Igor
Try this:
<p id="demo"></p>
<script>
const tomorrow = new Date();
tomorrow.setDate(new Date().getDate() + 1);
document.getElementById("demo").innerHTML = tomorrow;
</script>
I used this W3S example as source.