Created
September 7, 2017 17:13
-
-
Save dafma/fbcac8de804699b57bdd71e67540c606 to your computer and use it in GitHub Desktop.
Sumar dias a una fecha
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
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