1# Date 2 3- `v::date()` 4- `v::date(string $format)` 5 6Validates if input is a date: 7 8```php 9v::date()->validate('2009-01-01'); // true 10``` 11 12Also accepts strtotime values: 13 14```php 15v::date()->validate('now'); // true 16``` 17 18And DateTime instances: 19 20```php 21v::date()->validate(new DateTime); // true 22``` 23 24You can pass a format when validating strings: 25 26```php 27v::date('Y-m-d')->validate('01-01-2009'); // false 28``` 29 30Format has no effect when validating DateTime instances. 31 32Message template for this validator includes `{{format}}`. 33 34*** 35See also: 36 37 * [Between](Between.md) 38 * [MinimumAge](MinimumAge.md) 39 * [LeapDate](LeapDate.md) 40 * [LeapYear](LeapYear.md) 41