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