I'm trying to get the number of days in between the current date and a fixed date set in the past.
from datetime import *
past = date(2013, 1, 1)
now = datetime.now()
print now - past
When I run this, I get:
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'datetime.date'
Any suggestions are appreciated.