This should help you deal with this.
If you pass in the Date constructor, it will do the rest of the work.
24 hours 60 minutes 60 seconds 1000 milliseconds
var currentDate = new Date(new Date().getTime() + 24 * 60 * 60 * 1000); var day = currentDate.getDate() var month = currentDate.getMonth() + 1 var year = currentDate.getFullYear() document.write("<b>" + day + "/" + month + "/" + year + "</b>")
It should be borne in mind that this method will return the date exactly after 24 hours, which may be inaccurate in the summer.
Phil will reply at any time:
var currentDate = new Date(); currentDate.setDate(currentDate.getDate() + 1);
The reason I edited my post was because I myself created an error that was discovered during DST using my old method.
Roderick Obrist Feb 25 2018-12-12T00: 00Z
source share