title: how to display mongodb date in symfony2 twig template?
body: <p>I have a website listing products using symfony2 and mongodb</p>
  
  <p>I added the items into mongodb with create date and need to display all items in my twig template. </p>
  
  <p>For this</p>
  
  <p>In my controller I passed the array itemlist  to twig template. </p>
  
  <p>My twig template</p>
  
  <pre><code>{% for item in itemlist %}
  &lt;h4&gt;{{item.name}}&lt;/h4&gt;
  &lt;p&gt;{{item.name}}&lt;/p&gt;
  {{item.createdate}}
  {% endfor %}
  </code></pre>
  
  <p>Here I am not getting the item.createdate </p>
  
  <p>How to directly display the mongo date in twig template?</p>
  
  <p>is there any twig extension for this? </p>