Skip to content
Twig Field Finder
Theme

Published on

Open in builder

This is a property of the entity itself, so there’s no field name to fill in.

Reads the entity directly, before field formatters run. Only works in node.html.twig.

  1. Snippet 1
    {{ node.published_at.value|date('d.m.Y') }}
  2. Snippet 2
    {{ node.created.value|date('d.m.Y') }}

Uses a contrib module’s Twig filter or function. Only works in node.html.twig.

  1. {{ content.published_at|field_value|first['#text'] }}
  2. {{ content.published_at|field_raw.value }}

Contrib modules used

See helper modules for what each one provides.