title: Python 3.2 input date function
body: <p>I would like to write a function that takes a date entered by the user, stores it with the shelve function and prints the date thirty days later when called.</p>
  
  <p>I'm trying to start with something simple like:</p>
  
  <pre><code>import datetime
  
  def getdate():
      date1 = input(datetime.date)
      return date1
  
  getdate()
  
  print(date1)
  </code></pre>
  
  <p>This obviously doesn't work.</p>
  
  <p>I've used the answers to the above question and now have that section of my program working! Thanks!
  Now for the next part:</p>
  
  <p>I'm trying to write a simple program that takes the date the way you instructed me to get it and adds 30 days.</p>
  
  <pre><code>import datetime
  from datetime import timedelta
  
  d = datetime.date(2013, 1, 1)
  print(d)
  year, month, day = map(int, d.split('-'))
  d = datetime.date(year, month, day)
  d = dplanted.strftime('%m/%d/%Y')
  d = datetime.date(d)+timedelta(days=30)
  print(d)
  </code></pre>
  
  <p>This gives me an error:
          year, month, day = map(int, d.split('-'))
      AttributeError: 'datetime.date' object has no attribute 'split'</p>
  
  <p>Ultimately what I want is have 01/01/2013 + 30 days and print 01/30/2013.</p>
  
  <p>Thanks in advance!</p>