Skip to content

Instantly share code, notes, and snippets.

@dafma
Created September 7, 2017 17:13
Show Gist options
  • Save dafma/fbcac8de804699b57bdd71e67540c606 to your computer and use it in GitHub Desktop.
Save dafma/fbcac8de804699b57bdd71e67540c606 to your computer and use it in GitHub Desktop.
Sumar dias a una fecha
from datetime import datetime, timedelta
s = '2004/03/30'
date = datetime.strptime(s, "%Y/%m/%d")
modified_date = date + timedelta(days=5)
print(modified_date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment