checkdate
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Validate a Gregorian date
checkdate
(
int $month
,
int $day
,
int $year
):
bool
laravel/framework
$date
=
date_parse
(
$value
);
return
checkdate
(
$date
[
'month'
],
$date
[
'day'
],
$date
[
'year'
]);
}
src/Illuminate/Validation/Concerns/ValidatesAttributes.php