Skip to content

Instantly share code, notes, and snippets.

@davedavis
Created June 23, 2020 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davedavis/44ef4a35cd190dc28dd03f034b8bc15a to your computer and use it in GitHub Desktop.
Save davedavis/44ef4a35cd190dc28dd03f034b8bc15a to your computer and use it in GitHub Desktop.
Last 28 Days in Python - For Reporting
# Define the report date range: last 28 days including today
start=datetime.today().date().isoformat().replace("-", "")
end=datetime.now() + timedelta(days= - 28)
end= end.date().isoformat().replace("-","")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment