Programmatically change a Google apps script's timezone

Viewed 9137

I've been having a very hard time trying to properly set up the timezones of calendar event dates because the Javascript's Date object is taking the project's timezone:

Project properties.

Is there a way to programmatically change that property?

1 Answers

Yes it is possible using date time formatting. Here is an example

Utilities.formatDate(new Date(data[0][12]), "GMT+5", "EEEE, dd MMM yyyy")

You can mention your time zone instead of "GMT+5".

Related