diff --git a/lib/nopt.js b/lib/nopt.js index 2cf25d7..2287ea9 100644 --- a/lib/nopt.js +++ b/lib/nopt.js @@ -146,8 +146,8 @@ function validateNumber (data, k, val) { } function validateDate (data, k, val) { - debug("validate Date %j %j %j", k, val, Date.parse(val)) var s = Date.parse(val) + debug("validate Date %j %j %j", k, val, s) if (isNaN(s)) return false data[k] = new Date(val) }