Pantalla de fecha de fecha ramita
// date
{{ post.published_at|date("m/d/Y") }}
// date time
{{ post.published_at|date('Y-m-d H:i:s') }}
Hichem from Tunisia
// date
{{ post.published_at|date("m/d/Y") }}
// date time
{{ post.published_at|date('Y-m-d H:i:s') }}
{# 23:39 #}
{{ '2019-08-07 23:39:12'|format_datetime('none', 'short', locale='fr') }}
{# 07/08/2019 #}
{{ '2019-08-07 23:39:12'|format_datetime('short', 'none', locale='fr') }}
{# mercredi 7 août 2019 23:39:12 UTC #}
{{ '2019-08-07 23:39:12'|format_datetime('full', 'full', locale='fr') }}
{{ post.published_at|date("F jS \\a\\t g:ia") }}
{% set dateTime = date(article.date) %}
<span class="day">{{ dateTime | date('d') }}</span>
<span class="month">{{ dateTime | date('F') }}</span>
<span class="year">{{ dateTime | date('Y') }}</span>