Skip to content
Advertisement

Tag: google-sheets

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

Var not being used in object.var

What should I be doing differently? At the end, it logs {name={rows=[0.0, 1.0, 2.0, …]}} instead of having an object for each name…? In the sheet there’s just a first name and last name on columns A and B, for around 80 rows. Answer Use the bracket syntax if you want to use dynamic names for properties: https://riptutorial.com/javascript/example/2321/dynamic—variable-property-names In your

GAS, Bootstrap Web form Searches and Shows Data in a table, BUT it does NOT show links or hyperlinks to click on them (from spreadsheet)

Here is the web app https://script.google.com/macros/s/AKfycbyEHj5qtIeCZh4rR6FutBLQ3N9NihreaTv7BFj4_saOfNWJUG0Tn2OtvzQs4zASYHnNiA/exec Any idea on how could I make it show up the links or hyperlinks some cells have? I have made this web form mainly following a tutorial so I’m somewhat new, I try to understand most of the code but truly it’s quite hard for me so if this is something that’s too hard

Advertisement