import datetime  
from datetime import datetime  
  
def differ_days(date1, date2):  
    a = date1  
    b = date2  
    return (a-b).days  

print(differ_days((datetime(2020,10,12,10,0,0)), datetime(2018,5,25,0,0,0)))

Output :

871

Add a Comment

Add a Comment