function dateCheck(date){ var d = new Date(date.replace(/-/g, "/")); var now = new Date(); if(d>now) { return true; } return false; }