I'm trying to use this library http://momentjs.com/ with key MHMchiX6c1bwSqGM1PZiW_PxhMjh3Sh48 How do I use momentsjs in Google Apps Script?
var moment = Moment.load();
var d = moment().format("DD MMMM YYYY");
Logger.log(moment(d).format('LL'));
and I get date in correct format in English, but I need it in Russian. When I add the line:
var moment = Moment.load();
moment.locale('ru');
var d = moment().format("DD MMMM YYYY");
Logger.log(moment(d).format('LL'));
It doesn't work and I get notification - Cannot find function locale in Object function (b, c, d, e) {...}. Is it something wrong in my code?