date_N_days_ago = datetime.now() - timedelta(days=N)
import datetime
datetime.datetime.now() - datetime.timedelta(days=3*365)
date_N_days_ago = datetime.now() - timedelta(days=N)
import datetime
datetime.datetime.now() - datetime.timedelta(days=3*365)