Skip to content
Twig Field Finder
Theme

Created / changed date

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.

  1. Snippet 1
    {{ node.created.value|format_date('medium') }}
  2. Snippet 2
    {{ node.changed.value|format_date('custom', 'd.m.Y') }}

Gotcha

format_date is Drupal core’s Twig filter for timestamps and uses the site’s date formats and timezone. Taxonomy terms have changed but no created.