I use the library of the moment. js displays so Tuesday, June 28 2016, 11:34:04 but I would like to not in English.

var now = moment(); moment.locale('ru'); //moment.lang('ru'); // так тоже ничего не дает console.log(now.format('dddd, MMMM DD YYYY, h:mm:ss')); 

I tried to connect both the min version and moment-with-locales.js there is no result. Need your help.

    2 answers 2

     moment.lang("ru").format('LLL'); 

    Starting with version 2.8 you need to use

     moment.locale("ru").format('LLL'); 
    • Alas, but did not help (( - Yalik

    In this case, like this:

     var now = moment(); console.log(now.locale("ru").format('dddd, MMMM DD YYYY, h:mm:ss')); 

    http://momentjs.com/docs/#/i18n/