Test to see how date is formatted using Arabic/Morocco
by David Storey
JavaScript
var locale = "ar-DZ-u-ca-gregory-nu-latn",
formatter = new Intl.DateTimeFormat(locale);
console.clear();
console.log(formatter.resolvedOptions().locale);
console.log(formatter.format(new Date("2013-11-09")));
locale = "ar-DZ",
formatter = new Intl.DateTimeFormat(locale);
console.log(formatter.resolvedOptions().locale);
console.log(formatter.format(new Date("2013-11-09")));