public static function jDateTime::checkDate in Persian Date for Drupal 8 8.4
Checks whether a date is valid or not.
Parameters
$year:
$month:
$day:
bool $isJalali:
Return value
bool
File
- src/
Library/ Jalali/ jDateTime.php, line 92
Class
- jDateTime
- Class jDateTime @package Morilog\Jalali
Namespace
Drupal\persian_date\Library\JalaliCode
public static function checkDate($year, $month, $day, $isJalali = true) {
return $isJalali === true ? self::isValidateJalaliDate($year, $month, $day) : checkdate($month, $day, $year);
}