You are here

public static function DateValidator::checkDate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Constraints/DateValidator.php \Symfony\Component\Validator\Constraints\DateValidator::checkDate()

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 vendor/symfony/validator/Constraints/DateTimeValidator.php
Checks if the passed value is valid.
DateValidator::validate in vendor/symfony/validator/Constraints/DateValidator.php
Checks if the passed value is valid.

File

vendor/symfony/validator/Constraints/DateValidator.php, line 37

Class

DateValidator
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Constraints

Code

public static function checkDate($year, $month, $day) {
  return checkdate($month, $day, $year);
}