isNaN(date))) { res.send("enter valid date"); } } else { date ... Because at end you are converting date to string and not a Date type.
確定! 回上一頁