5

I am working on a project built with craft cms, that uses twig templating, and I would like to format the date in to this kind of format:

13. June 2017

I am not sure how to do that, I have tried with php date functions:

{{ entry.dateUpdated.date('j. F Y') }}

and also with:

{{ entry.dateUpdated.localeDate('j. F Y') }}

But, none of them worked. How can I do that?

Leff
  • 1,968
  • 24
  • 97
  • 201

1 Answers1

14

try this

{{ entry.dateUpdated  | date('j. F Y') }}
Michał G
  • 2,234
  • 19
  • 27