title: TypeError: descriptor 'strftime' requires a 'datetime.date' object but received a 'str'
body: <p>I am trying to get date from pickle file and add one day to the date. The print statement returns <strong>2018-09-10</strong> . Then getting error  <code>'strftime' requires a 'datetime.date' object but received a 'str'</code>  on <code>datetime.datetime.strftime(dataHist['last_updated'], '%Y-%m-%d')</code> line</p>
  
  <pre><code>Import pickle
  
  dataHistFile = open('dat.pkl', 'rb')
  dataHist = pickle.load(dataHistFile, encoding='bytes')
  print(dataHist['last_updated'])
  dt_obj = datetime.datetime.strftime(dataHist['last_updated'], '%Y-%m-%d')
  date = dt_obj + datetime.timedelta(days=1)
  </code></pre>
  
  <blockquote>
    <p>2018-09-10<br>
     File "C:/Users/Arvinth
    Kumar/Downloads/strtsmrt-master/gendata.py", line 81, in init
        fetchData()   File "C:/Users/Arvinth Kumar/Downloads/strtsmrt-master/gendata.py", line 15, in fetchData
        news.init()   File "C:\Users\Arvinth Kumar\Downloads\strtsmrt-master\news.py", line 58, in init
        getNews()   File "C:\Users\Arvinth Kumar\Downloads\strtsmrt-master\news.py", line 38, in getNews
        dt_obj = datetime.datetime.strftime(dataHist['last_updated'], '%Y-%m-%d') TypeError: descriptor 'strftime' requires a
    'datetime.date' object but received a 'str'</p>
  </blockquote>
  
  <p>Please help!</p>