from datetime import date today = date.today() jan_first = date(year=today.year, month=1, day=1) since = today - jan_first since.days