In the spreadsheet I can have a date in one cell then in the next cell over I can type in =A1+1 and it adds 1 day to the date in cell A1. I would like to do the same thing in a script.
I can set a date variable to today's date using the following.
var dateTracking = "";
dateTracking = currentDate;
But if I try to add 1 to dateTracking then it changes the variable from date format to a string
dateTracking = dateTracking + 1;
I just want a quick easy solution to add 1 or more days to a date variable.