import datetime  
from datetime import date  
def differ_days(date1, date2):  
  
    a = date1  
    b = date2  
    return (a-b).days  
  
print(differ_days((date(2020,12,15)), date(2017,10,1)))

Output :

1171

Add a Comment

Add a Comment