public function check() { parent::check(); if (!DateParser::is_valid_year_number($this->parts[0])) { return false; } if (!DateParser::is_valid_year_number($this->parts[1])) { return false; } return true; }
public function check() { if (!$this->separator) { return false; } if (!parent::check()) { return false; } if (!DateParser::is_valid_day_number($this->parts[0])) { return false; } if (!DateParser::is_month_name($this->parts[1])) { return false; } if (!DateParser::is_valid_year_number($this->parts[2])) { return false; } return true; }