Example by default:
{% set date = node.created.value|date("j") ~ ' ' ~ node.created.value|date("F") ~ ' ' ~ node.created.value|date("Y") %}
Example with translation:
{% set date = node.created.value|date("j") ~ ' ' ~ node.created.value|date("F")|t({}, {'context' : 'Long month name'}) ~ ' ' ~ node.created.value|date("Y") %}
Similar Posts:
- How to display in twig node creation date yesterday / today format in drupal 8 / 9
- How to get formatted node creation date in Drupal 8
- Helpful node methods in Drupal 8
- how to set date field programmatically drupal 8 / 9
- How to create custom block in Drupal 8 programmatically
806