Last active
April 23, 2020 15:37
-
-
Save parzibyte/18fe8e806822bfba67641bf9bd12f550 to your computer and use it in GitHub Desktop.
This file contains 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 | |
fecha_cadena = "2020-04-23" | |
fecha = datetime.strptime(fecha_cadena, '%Y-%m-%d') | |
# Ahora ya tenemos a una fecha con la cual podemos operar, ver días, meses, años, etcétera. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment