Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import datetime
  2.  
  3. def inputDate():
  4. date_entry = input('Enter a date in YYYY-MM-DD format')
  5. year, month, day = map(int, date_entry.split('-'))
  6. date1 = datetime.date(year, month, day)
  7. return date1
  8.  
  9. zm1 = inputDate()
  10. zm2 = inputDate()
  11.  
  12. print(zm1-zm2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement