var str = "12-23-2017 02:42:02"; var deadline = new Date(Date.parse(str)); deadline.setDate(deadline.getDate()+10); alert(deadline);