This would be one way
var myDate = new Date("2 dec 2012 3:30:00") // your date object
myDate.setHours(myDate.getHours() + 24)
console.log(myDate) //Mon Dec 03 2012 03:30:00 GMT+0100 (Mitteleuropäische Zeit)
Date.setHours
allows you to set the Hours of your Date Object
Date.getHours
retrieves them
In this Solution it simply gets the Hours from your Date Object adds 24 and writes them Back to your object.
Of course there are other Possible ways of achieving the same result e.g.
So adding 24 * 60 * 60 * 1000
or 86400000
milliseconds to your Date Object will result in the same
See VisioNs Answer
- Adding a Day
Date.getDate
gets the Date of the month of your Date
Object
Date.setDate
sets them
Increasing it by one, will again result in the same
As Ian mentioned in a comment
So its just depends on what feels the most understandable for you
And if you want to, give this w3schools examples a look, to get a starting point of dealing with Dates