I have a script that places today's date (the date when the script is run) in various cells in a spreadsheet in Sydney time which looks like this:
cell.setValue("" + Utilities.formatDate(new Date(), "UTC+10", "dd-MM-YYYY"));
This works fine but there are also some cells where I need it to place not today's date but a few days or weeks in the future - eg some cells I need filled with a value that is 5 days from when the script is run, two weeks, etc. How would I go about doing this? None of the variations I can find online seem to work properly.
Thanks!