Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created April 25, 2020 10:22
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 aniruddha27/028c5a3318ec48f3966776290e4175de to your computer and use it in GitHub Desktop.
Save aniruddha27/028c5a3318ec48f3966776290e4175de to your computer and use it in GitHub Desktop.
d1 = datetime.now()
print("Today's date :",d1)
d2 = d1+timedelta(days=2)
print("Date 2 days from today :",d2)
d3 = d1+timedelta(weeks=2)
print("Date 2 weeks from today :",d3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment