Skip to main content
1 of 2
Abin
  • 1.4k
  • 3
  • 11
  • 24

Try in this way.

{% set date = node.created|format_date('long') %}
{{ set date|date("m/d/Y") }}
  • Refer here to know more about filter date in TWIG.
  • Refer here to know more about date formats in php.

Hope this will help you.

Abin
  • 1.4k
  • 3
  • 11
  • 24