Pergunta

I use DateBox in Google App Script, and got the value of DateBox Sat Jul 20 2013 00:00:00 GMT+0800 (HKT).
How can I convert it to just be 2013-07-20?

Foi útil?

Solução

Use Utilities.formatDate() function.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top