How do I use momentsjs in Google Apps Script?

前端 未结 5 2306
时光说笑
时光说笑 2020-12-15 18:09

I\'m trying to utilize the momentjs library in Google Apps Script but I\'m not clear on how to do so. I\'m not sure how to add the library, so obviously running something l

5条回答
  •  粉色の甜心
    2020-12-15 19:00

    I created an updated version of moment for Appscript (v2.19.3 with locales). This is the library - Mlj57Yi463PVmHumHxq4bkaUlUqvRc4KT To start using it add the library then make moment a global variable as below.

    var moment = Moment.moment
    

提交回复
热议问题