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?

有帮助吗?

解决方案

Use Utilities.formatDate() function.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top