Skip to content
Advertisement

Tag: google-apps-script

Restrict Editors to Specific Ranges Script

Thanks to the help of someone from Stack, the following script was provided to make a protection script I had written run faster. While the new script does apply protections except the specified ranges, users who are provided editor access are able to edit outside of the desired ranges. My hope is to ensure that users are only able to

Convert timestamp from API to date app script

Running in App script, google sheet. I get timestamp from API and return this result: Now I want to convert this timestamp to date to be like that: 10/28/2021 10:30 I try this code: var convertDate = Utilities.formatDate(timestamp, “GMT”, “MM-dd-yyyy HH:mm:ss”); but not working any suggestoin Answer Assuming those timestamps are in nanoseconds, create a Date by dividing the timestamp

Advertisement