1``format_date`` 2=============== 3 4.. versionadded:: 2.12 5 6 The ``format_date`` filter was added in Twig 2.12. 7 8The ``format_date`` filter formats a date. It behaves in the exact same way as 9the :doc:`format_datetime<format_datetime>` filter, but without the time. 10 11.. note:: 12 13 The ``format_date`` filter is part of the ``IntlExtension`` which is not 14 installed by default. Install it first: 15 16 .. code-block:: bash 17 18 $ composer require twig/intl-extra 19 20 Then, on Symfony projects, install the ``twig/extra-bundle``: 21 22 .. code-block:: bash 23 24 $ composer require twig/extra-bundle 25 26 Otherwise, add the extension explicitly on the Twig environment:: 27 28 use Twig\Extra\Intl\IntlExtension; 29 30 $twig = new \Twig\Environment(...); 31 $twig->addExtension(new IntlExtension()); 32 33Arguments 34--------- 35 36* ``locale``: The locale 37* ``dateFormat``: The date format 38* ``pattern``: A date time pattern 39