Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

93
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda