public function date(WP_Post $post, string $format): string
    {
        Assert::stringNotEmpty($format);

        $postDate = get_the_date($format, $post);

        $this->bailIfInvalidValue($postDate, $post);

        return $postDate;
    }