import datetime today = datetime.date.today() future = datetime.date(2019,9,20) diff = future - today print (diff.days)