0

For today's date, I use:

Utilities.formatDate(new Date(), "Europe/London", "yyyy-MM-dd")

For tomorrow's date I've already tried these ways but none with positive result:

Utilities.formatDate(new Date()+1, "Europe/London", "yyyy-MM-dd")

Utilities.formatDate(new Date(), "Europe/London", "yyyy-MM-dd")+1

Utilities.formatDate(new Date(), "Europe/London", "yyyy-MM-dd").getDate()+1

Utilities.formatDate(new Date().setDate(new Date().getDate()+1), "Europe/London", "yyyy-MM-dd")

How should I work to collect tomorrow's date when I need to use it according to a specific timezone?

Rubén
  • 34,714
  • 9
  • 70
  • 166
Digital Farmer
  • 1,705
  • 5
  • 17
  • 67

1 Answers1

2
const date = new Date();
date.setDate(date.getDate() + 1);
Utilities.formatDate(date, "Europe/London", "yyyy-MM-dd")
idfurw
  • 5,727
  • 2
  • 5
  • 18