Python Calc Days Antara Tanggal
from datetime import date
d0 = date(2008, 8, 18)
d1 = date(2008, 9, 26)
delta = d1 - d0
print(delta.days)
Zealous Zebra
from datetime import date
d0 = date(2008, 8, 18)
d1 = date(2008, 9, 26)
delta = d1 - d0
print(delta.days)
from datetime import date
d0 = date(2017, 8, 18)
d1 = date(2017, 10, 26)
delta = d1 - d0
print(delta.days)
from datetime import date
startDate = date(2021, 7, 19)
endDate = date(2021, 11, 12)
delta = startDate - endDate
print(delta.days)
from datetime import date
startDate = date(2021, 7, 19)
endDate = date(2021, 11, 12)
delta = startDate - endDate
print(delta.days)