It is the first time when I met some of the bad example of data format. All date goes for me regarding to a region of a customer. I cannot change it. I got string:
var str = "23.01.2019 23:05:58";
in order to get
var dt = new Date(str);
I need to execute at least
str.replace(/./g,'/');
But got a weird result. (tried "split" and "join") also nothing. Thanks a lot for any help