Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/11/2016, 15:58
efueyo
 
Fecha de Ingreso: enero-2013
Ubicación: Langreo - Asturias
Mensajes: 8
Antigüedad: 11 años, 2 meses
Puntos: 0
ValueError: time data '2016-11-21' does not match format '%Y/%m/%d'

Estimados todos
Trabajando con una lista de 1000 fechas, obtengo el siguiente error.

Traceback (most recent call last):
File "/media/enri/6006-FF6B/Python-LibreofficeCalc/MiCartera/Analizar_MiCartera_lista.py", line 54, in <module>
hoja.cell(column=col_fecha, row=fila, value=datetime.strptime(fecha, '%Y/%m/%d').date())
File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data '2016-11-21' does not match format '%Y/%m/%d'

¿A qué se debe si 2016-11-21 es una fecha con el formato %Y/%m/%d?

Agradeceré vuestra ayuda