Imdb\Title::episodeAirDate PHP Method

episodeAirDate() public method

The date when this episode aired for the first time
public episodeAirDate ( ) : string
return string An ISO 8601 date e.g. 2015-01-01. Will be an empty string if not available
    public function episodeAirDate()
    {
        if (!$this->isEpisode()) {
            return "";
        }
        $page = $this->getPage("Title");
        if (preg_match("@<meta itemprop=\"datePublished\" content=\"([\\d\\-]+)\" />@", $page, $matches)) {
            return $matches[1];
        }
        return "";
    }