JavaScript how to get tomorrows date in format dd-mm-yy
<p>I am trying to get JavaScript to display tomorrows date in format (dd-mm-yyyy)</p>

<p>I have got this script which displays todays date in format (dd-mm-yyyy)</p>

<pre><code>var currentDate = new Date()
var day = currentDate.getDate()
var month = currentDate.getMonth() + 1
var year = currentDate.getFullYear()
document.write("&lt;b&gt;" + day + "/" + month + "/" + year + "&lt;/b&gt;")

Displays: 25/2/2012 (todays date of this post)
</code></pre>

<p>But how do I get it to display tomorrows date in the same format i.e. <code>26/2/2012</code></p>

<p>I tried this:</p>

<pre><code>var day = currentDate.getDate() + 1
</code></pre>

<p>However I could keep <code>+1</code> and go over 31 obviously there are not >32 days in a month</p>

<p>Been searching for hours but seems to be no answer or solution around this?</p>
