Source Code:
(back to article)
<?php $month = 2; $day = 29; $year = 2024; if (checkdate($month, $day, $year)) { echo "The date is valid"; } else { echo "The date is invalid"; }
Result:
Report an issue