Python Shopify API output formatted datetime string in django template
<p>Shopify API gives a string in ISO 8601 format for the order.created_at field.</p>

<p>For example: 2016-04-10T16:30:09-04:00</p>

<p>I want to format this and show it directly in a template, so I have tried:</p>

<pre><code>{{ order.created_at|date:'Y-m-d H:i' }}
</code></pre>

<p>But nothing displays, and I don't get any errors. I think it is because it is a string and not a datetime object. I don't want to convert it first though in my view.</p>