Answer the question
In order to leave comments, you need to log in
How to get the number of days between 2 dates?
There are two dates:
a = '2020, 03, 13'
b = '2020, 08, 10'
d0 = date(data_per)
d1 = date(data_per2)
delta = d1 - d0
print(delta.days)
Answer the question
In order to leave comments, you need to log in
Nobody reads the documentation...
d0 = datetime.strptime('2020, 03, 13', '%Y, %m, %d').date()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question