JSFiddle - React, Tailwind, and code Playground
by Amit Joki
JavaScript
String.prototype.toLocaleString = function (locale) {
if (locale == "de-de") return this.replace(/(\d+).(\d+).(\d+)/, '$2.$1.$3');
}
alert('01.02.2013'.toLocaleString("de-de"));