Django Auth user date_joined field datetime to string
<p>When i am fetching the stored datetime value from auth user in django the value comes as below is there a way to convert this into normal date time format may be like <code>"dd:mm:yyyy hh:mm:ss"</code>  or some string value that can be displayed in better(other) format</p>

<pre><code> date_joined = request.user.date_joined
 #date_joined value is 
 #datetime.datetime(2016, 9, 11, 16, 6, 22, 314637, tzinfo=&lt;UTC&gt;)
</code></pre>

<p>You can format a datetime object using its <a href="https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior" rel="nofollow"><code>strftime()</code></a> method, for example like this:</p>

<pre><code> date_joined = request.user.date_joined
 date_joined.strftime("%d:%m:%y %H:M:S")
</code></pre>

<p>If you want to display a datetime object in Django template, you can use the builtin <a href="https://docs.djangoproject.com/es/1.10/ref/templates/builtins/#date" rel="nofollow"><code>date</code></a> filter.</p>

<pre><code>{{ date_joined|date:"d:m:Y H:i:s")
</code></pre>

python django datetime