var
time =
"2018-03-12 11:11:11"
.split(/[- : \/]/);
date =
new
Date(time[0], time[1]-1, time[2], time[3], time[4], time[5]);
console.log(date);