Answers for "py get days until date"

0

py get days until date

import datetime

today = datetime.date.today()
future = datetime.date(2019,9,20)
diff = future - today
print (diff.days)
Posted by: Guest on April-12-2021

Browse Popular Code Answers by Language