Dirk Eismann wrote:

To add a day (24 * 60 * 60 * 1000 ms) to dateObj

dateObj.setTime(dateObj.getTime() + 86400000);

Why, it's not that bad!

// add a day to Jan 31, 2005
var d:Date = new Date(2005, 0, 31);
d.setDate(d.getDate() + 1);
alert(d.toString());
// displays Feb 1, 2005!

Manish




Reply via email to