title: How to extract day, month and year from utcnow?
body: <p>I have the following var: <code>time_created = datetime.utcnow()</code></p>
  
  <p>How to create a <code>time_created_day</code> var from <code>time_created</code> that will contain only Y, M, d </p>
  
  <p>like this <code>datetime.datetime(2017, 11, 7)</code></p>
  
  <p>I have the following solution:</p>
  
  <pre><code>from datetime import date
  
  time_created_day = date(time_created.year, time_created.month, time_created. day)
  </code></pre>
  
  <p>is it the best way?</p>