问题 I created a function that takes in a date and number of months to add to that date and returns the next date. The function seems to be working perfectly, which I check using DEBUG. The strange thing is when I logger in the returned date using the line below, monthstoadd = 18 date1.setFullYear(2019, 6, 1); returnDate = AddMonths(date1, monthstoadd); // my selfmade function Logger.log("returnDate(1):", returnDate.getMonth(), "/" , returnDate.getDay(), "/", returnDate.getFullYear()); the date in