mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
eecc696792
The `DateTime::createFromFormat()` tries to guess the date too much and sometimes wrong parsing may happen: ```php echo DateTime::createFromFormat('Ym', '202309')->format('Ym'); ``` The output of the above code is "202310", not "202309". Using `date_parse_from_format()` we get a more precise parsing. |
||
---|---|---|
.. | ||
Exceptions | ||
Rules | ||
ExceptionIterator.php | ||
Factory.php | ||
Validatable.php | ||
Validator.php |