v::date()v::date(string $format)
Validates if input is a date:
v::date()->validate('2009-01-01'); // trueAlso accepts strtotime values:
v::date()->validate('now'); // trueAnd DateTime instances:
v::date()->validate(new DateTime); // trueYou can pass a format when validating strings:
v::date('Y-m-d')->validate('01-01-2009'); // falseFormat has no effect when validating DateTime instances.
Message template for this validator includes {{format}}.
See also: