I am trying to run in a GAS script
function test(){
var options = { year: 'numeric', month: 'long', day: 'numeric' },
locale="ru-RU",
data= (new Date()).toLocaleDateString(locale, options);
Browser.msgBox(data);
}
But google always returns the same format no matter what I type in the locale.
How to fix it?
source
share