var d1 = '2018-10-25 10:10:24'; d1 = new Date(Date.parse(d1)); alert(d1); var data1 = d1.setSeconds(d1.getSeconds() + 60); if(data1 )//как то так