title: Joi date greater than now
body: <p>I am using Joi with express to validate the request. I need to validate the date field in the request body, so my code is next:</p>
  <pre><code>const dateSchema = Joi.date().greater(Date.now()).iso().required();
  </code></pre>
  <p>this works ok but the major problem is that <code>Date.now()</code> is picking up the date when I started an express server. So for example, if the server was started at 5:00, joi will not allow 4:59 but will allow everything that is greater than 5:00 even though the current time is 5:05.</p>
  <p>How I can check <code>Joi.date().greater(dynamicDateNow)</code>?</p>