tao-test/app/vendor/respect/validation/docs/rules/LeapDate.md

19 lines
292 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# LeapDate
- `v::leapDate(string $format)`
Validates if a date is leap.
```php
v::leapDate('Y-m-d')->validate('1988-02-29'); // true
```
This validator accepts DateTime instances as well. The $format
parameter is mandatory.
***
See also:
* [Date](Date.md)
* [LeapYear](LeapYear.md)