JSFiddle - React, Tailwind, and code Playground
by evgkch
JavaScript
const str = '2018-07-12T13:48:44+'
const a = str.replace(/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})[\s\S]+/, '$2.$3.$1 $4:$5');
console.log(a)
by evgkch
const str = '2018-07-12T13:48:44+'
const a = str.replace(/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})[\s\S]+/, '$2.$3.$1 $4:$5');
console.log(a)