title: Twig - format date
body: <p>I am working on a project built with <a href="https://craftcms.com/docs/templating/datetime" rel="noreferrer">craft cms</a>, that uses twig templating, and I would like to format the date in to this kind of format:</p>
  
  <pre><code>13. June 2017
  </code></pre>
  
  <p>I am not sure how to do that, I have tried with php date functions:</p>
  
  <pre><code>{{ entry.dateUpdated.date('j. F Y') }}
  </code></pre>
  
  <p>and also with:</p>
  
  <pre><code>{{ entry.dateUpdated.localeDate('j. F Y') }}
  </code></pre>
  
  <p>But, none of them worked. How can I do that?</p>