Created
June 23, 2020 21:05
-
-
Save davedavis/44ef4a35cd190dc28dd03f034b8bc15a to your computer and use it in GitHub Desktop.
Last 28 Days in Python - For Reporting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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