how to get 7 days earlier datetime from current date code example
Example: python datetime get date one week from today
>>> import datetime
>>> datetime.datetime.now() + datetime.timedelta(days=7)
>>> import datetime
>>> datetime.datetime.now() + datetime.timedelta(days=7)