Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

92
Visualizações
Convert string to time format in AppScripts Google Sheets

There is a line

var t = ['19: 38: 50.358 ']

How can I explicitly specify in the code that this string is written to the Google Sheets cell in the format 7:38:50 PM?

I will clarify what is needed for the string 't' to fall into the cell, but there it is defined as time. I have a weird problem, when I run the script from the script editor, sheets defines these cells as time (7:38:50 PM), but when I run the script from the menu button I created, the lines are written right as they are (19: 38: 50.358), and then it is impossible to build a graph with a certain time step. From the script editor and from the menu button, exactly the same function is launched, nothing more. Ex: https://docs.google.com/spreadsheets/d/1zvKDnlzG75yuCq-m-0OWLmCJTxGJugLRJ509tTLhf2o/edit?usp=sharing EX2: https://docs.google.com/spreadsheets/d/10oFExu5lT5y0vRKsNL11wJV_ZyvqOOG-mANEJSv-dhg/edit?usp=sharing

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda