Format the date, showing different order depending on locale
HTML
<h1>Mariana<h1>
JavaScript
// British: little-endian, American: mixed up, Hungarian: big-endian
var locales = ["en-GB", "en-US", "hu"],
length = locales.length,
dateFormat = null;
console.clear();
for (var i = 0; i < length; i++) {
dateFormat = new Intl.DateTimeFormat(locales[i], {
year: "numeric",
month: "long",
day: "numeric"
});
console.log(dateFormat.resolvedOptions().locale + " " + dateFormat.format());
}