Using older version of Indicative or @adonisjs/validator?. Click here to access the old version documentation.



Enforces the field value to be a valid date. The rule will cast the string values to a Javascript date object.

Casts fromCasts to

Following is the list of formats that passes validations

  • 2015-03-25 (ISO Date)

  • 03/25/2015 (Short Date)

  • Mar 25 2015 (Long Date)

  • 25 Mar 2015 (Long Date)