Run
from datetime import date date_1 = date(2022, 1, 18) date_2 = date(2022, 2, 14) diff = date_2 - date_1 num_days = diff.days print('Number of days :', num_days)
Output