from datetime import date, timedelta
date(2011, 1, 15) - date.today()
date(2011, 1, 15) - date.today() < timedelta(days=3)
date(2011, 1, 18) - date.today() < timedelta(days=3)
Checking date against date range in Python