Horde_Date_Recurrence::_formatExceptionDate PHP Method

_formatExceptionDate() protected method

Returns a correcty formatted exception date for recurring events.
Since: 2.1.0
protected _formatExceptionDate ( string $date, string $format ) : string
$date string Exception in the format Ymd.
$format string The format to display in.
return string The formatted date and delete link.
    protected function _formatExceptionDate($date, $format)
    {
        if (!preg_match('/(\\d{4})(\\d{2})(\\d{2})/', $date, $match)) {
            return '';
        }
        $horde_date = new Horde_Date(array('year' => $match[1], 'month' => $match[2], 'mday' => $match[3]));
        return $horde_date->strftime($format);
    }