Source Code:
(back to article)
<?php $date = '2022-13-01'; $result = date_create_from_format('Y-m-d', $date); $errors = date_get_last_errors(); print_r($errors); ?>
Result:
Report an issue