from datetime import datetime dt_target = datetime(2022,8,9) dt_now = datetime.now() # 2022/8/19 dt_diff = dt_now - dt_target print(dt_diff.days)