from datetime import date,datetime d1 = datetime.strptime('2008-03-03','%Y-%m-%d') d2 = datetime(2008, 2 ,3) print(date.today()) print(d1 - d2)
To embed this project on your website, copy the following code and paste it into your website's HTML: