Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DateValidator.php

function DateValidator::checkDate

Checks whether a date is valid.

@internal

1 call to DateValidator::checkDate()
DateValidator::validate in vendor/symfony/validator/Constraints/DateValidator.php
Checks if the passed value is valid.

File

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

Class

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

Namespace

Symfony\Component\Validator\Constraints

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal