var deadline = new Date(2017, 11, 31, 0, 0, 0, 0);
if (t.total <= 0) { clearInterval(timeinterval); *!* callback() */!* }
var str = "12-23-2017 02:42:02"; var deadline = new Date(Date.parse(str)); deadline.setDate(deadline.getDate()+10); alert(deadline);