'use strict'

const validation = require('../validation')

module.exports = (date) => {
  return { validate }

  function validate (value, input) {
    const pass = (new Date(value)) > (new Date(date))
    return validation(pass, 'afterDate:' + value)
  }
}

@@ -238,20 +238,19 @@
 ate:' + 
-valu
+dat
 e)%0A  %7D%0A%7D

fix a bug with the afterDate error message