I can't figure out how to add one day to a date in Google App Script. I have this script:
function dateTest() {
var testDate = new Date();
var secondDate = new Date(testDate.getDate()+1);
Logger.log(testDate);
Logger.log(secondDate);
}
Which produces the following log:
[16-11-30 16:35:02:499 GMT] Wed Nov 30 16:35:02 GMT+00:00 2016
[16-11-30 16:35:02:500 GMT] Thu Jan 01 01:00:00 GMT+01:00 1970
I don't understand why it's not adding to the date?