JSFiddle - React, Tailwind, and code Playground

by prozoroff

JavaScript

s = "27.09.2015 18:42"; 
alert(s.replace(/./g, "-").replace(" ", "T"));
alert(new Date(s.replace(/./g, "-").replace(" ", "T")))