I am trying to change the language of the date which is being set by moment.js. The default one is English, but I want to set the German language. These is what I tried:
var now = moment().format("LLL").lang("de");
It’s giving NaN
.
var now = moment("de").format("LLL");
This isn’t even reacting.
var now = moment().format("LLL", "de");
No change: this is still producing a result in English.
How is this possible?