There is a convenient site called days calculation. http://keisan.casio.jp/exec/system/1177658154
I will reproduce something like this.
calc_days.py
import datetime
a = datetime.date(2015, 4, 1)
b = datetime.date(2016, 1, 25)
print((b-a).days)
# 299
By the way, this value does not include the first day, so if you want to write the ~ day, add +1.
Recommended Posts