title: How to format current time in django views?
body: <p>I'm unable to figure out that how to format present time in django views. I just want to show <strong>year-month-date</strong> or (y,m,d) .Can you guys tell me how to do this ?</p>
  <p>Right now i'm trying in a following way.</p>
  <pre><code>from django.utils import timezone
  print('date :',timezone.now())
  and it returns : 
  date : 2020-12-31 18:34:29.309006+00:00
  </code></pre>
  <p>Desire output is : date : <strong>2020-12-31</strong></p>