Getting the date of 7 days ago from current date in python [closed] February 6, 2023 by Tarik import datetime as DT today = DT.date.today() week_ago = today - DT.timedelta(days=7)