I have the following JS code (just run it in the console)
let a = new Date();
let dateoptions = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
console.log(a.toLocaleDateString('nb-NO', dateoptions));
In firefox I get the expected format:
"mandag 16. august 2021"
But in chrome I get
"Monday, August 16, 2021" if the browser language is et to "en(USA)"
"2021 M08 16, Mon" if the browser language is set to "Norwegian bokmål"
This is version "92.0.4515.131" of chrome. Is this a new bug in Chrome, or am I doing something wrong?