Bundle/CoreBundle/Twig/Extension/CmsExtension.php
public function twigVicDateFormatFilter($value, $format = 'F j, Y H:i', $timezone = null)
    {
        try {
            $result = twig_date_format_filter($this->twig, $value, $format, $timezone);
        } catch (\Exception $e) {
            return $value;
        }

        return $result;
    }
public function twigVicDateFormatFilter($value, $format = 'F j, Y H:i', $timezone = null)
    {
        try {
            $result = twig_date_format_filter($this->twig, $value, $format, $timezone);
        } catch (\Exception $e) {
            return $value;
        }

        return $result;
    }
public function twigVicDateFormatFilter ( $ value , $ format = 'F j, Y H:i' , $ timezone = null ) { try { $ result = twig_date_format_filter ( $ this -> twig , $ value , $ format , $ timezone ) ; } catch ( \ Exception $ e ) { return $ value ; } return $ result ; }
Converts a date to the given format.

@param string              $format   A format
@param DateTimeZone|string $timezone A timezone

<pre>
{{ post.published_at|date("m/d/Y") }}
</pre>

@return string The formatted date
Converts a date to the given format .