Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- # Crear una fecha arbitraria:
- fin_aghnio = datetime.datetime(year = 2017, month = 12, day = 31)
- print(fin_aghnio)
- # Uso función strptime:
- fecha = datetime.datetime.strptime("2017-12-31", "%Y-%m-%d")
- print(fecha)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement