title: How get date format in Django template
body: <p>I am new to django. In my template I need the current date as date format, while the following code returns string:</p>
  
  <pre><code>&lt;p&gt;{% now "Y-m-d" as date %}&lt;/p&gt;
  </code></pre>
  
  <p>where I want the date in format of 2018-12-17 as a date not string. Is there anyway to do that?</p>
  
  <p>thnaks</p>