public static function DateValidator::checkDate in Plug 7
Checks whether a date is valid.
@internal
Parameters
int $year The year:
int $month The month:
int $day The day:
Return value
bool Whether the date is valid
2 calls to DateValidator::checkDate()
- DateTimeValidator::validate in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ DateTimeValidator.php - Checks if the passed value is valid.
- DateValidator::validate in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ DateValidator.php - Checks if the passed value is valid.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ DateValidator.php, line 38
Class
- DateValidator
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\ConstraintsCode
public static function checkDate($year, $month, $day) {
return checkdate($month, $day, $year);
}