title: how to find difference between two dates in terms of day by getting date as user input
body: <p>I need to find the difference between two dates in terms of days by getting date as a user input. I tried to get date using <code>raw_input</code> but I'm getting an error. I'm using 2.7 version of python. </p>
  
  <pre><code>import time
  from datetime import date
  day1 = int(raw_input("enter the date in this format (yyyy:mm:dd)")
  day2 = int(raw_input("enter the date in this format (yyyy:mm:dd)")
  diff = day2-day1
  print diff
  </code></pre>