title: Troubleshooting "descriptor 'date' requires a 'datetime.datetime' object but received a 'int'"
body: <p>In my code I ask the user for a date in the format <code>dd/mm/yyyy</code>.</p>
  
  <pre><code>currentdate = raw_input("Please enter todays date in the format dd/mm/yyyy: ")
  day,month,year = currentdate.split('/')
  today = datetime.date(int(year),int(month),int(day))
  </code></pre>
  
  <p>This returns the error</p>
  
  <blockquote>
    <p>TypeError: descriptor 'date' requires a 'datetime.datetime' object but received a 'int' </p>
  </blockquote>
  
  <p>if I remove the <code>int()</code> then I end up with the same error only it says it received a <code>'str'</code></p>
  
  <p>What am I doing wrong?</p>