var ff='2018-04-30 14:20:30';
var reg = /-| |:/g;
var IosstartTime=ff.replace(reg,',');
var str = IosstartTime+ '';
var arr = str.split(',');
var vv = new Date(arr[0], arr[1], arr[2], arr[3], arr[4], arr[5]);
alert(vv);
var ff='2018-04-30 14:20:30';
var reg = /-| |:/g;
var IosstartTime=ff.replace(reg,',');
var str = IosstartTime+ '';
var arr = str.split(',');
var vv = new Date(arr[0], arr[1], arr[2], arr[3], arr[4], arr[5]);
alert(vv);