I am trying to add 7 days to the current date and name a sheet with that value. Below is the code I would think would work, but it keeps the date format and adds the 7 days to the year rather than the day.
var ss = SpreadsheetApp.getActiveSpreadsheet();
var tz = ss.getSpreadsheetTimeZone();
var sheets = ss.getSheets();
var date = Utilities.formatDate(new Date(), tz, 'MM-dd-yy');
var day1 = date +7
sheets[1].setName(day1); // Rename second
Do I have something incorrect?