Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from datetime import datetime
- cadena = '2013-04-13'
- fecha = datetime.strptime(cadena, '%Y-%m-%d')
- fecha_actual = datetime.now()
- diferencia = fecha_actual - fecha
- print(diferencia)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement