mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
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 | ||
library | ||
Rules | ||
FactoryTest.php | ||
ValidatorTest.php |