Recuperar fechas

Pablo Rey Sobral pabloreysobral en gmail.com
Mie Dic 22 21:05:53 CET 2004


Hola,

La fecha la tienes formateada al revés normalmente se escriben
año-mes-dia y no día mes año.

No se si será ese el problema.

Un  saludo.


On Wed, 22 Dec 2004 11:08:27 -0800 (PST), FERNANDO VILLARROEL
<fvillarroel en yahoo.com> wrote:
> Hola tengo un problema cuando recupero fechas de una
> BD, me lanza la siguiente excepcion:
> 
> Traceback (most recent call last):
>   File "/home/developer/chevalier/MnuClche.py", line
> 445, in OnBuscar
> 
> self.rut,self.dv,self.rz,self.di,self.co,self.pc,self.gi,self.tc,self.nc,self.ncc,self.ba,self.te1,self.te2,self.fc,self.com,self.es=cur.fetchone()
>   File
> "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py",
> line 3139, in fetchone
>     return self.__fetchOneRow()
>   File
> "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py",
> line 2776, in __fetchOneRow
>     _r.getvalue(self._idx_, _i)))
>   File
> "/usr/lib/python2.3/site-packages/pyPgSQL/PgSQL.py",
> line 804, in typecast
>     return DateTime.ISO.ParseAny(value)
>   File
> "/usr/lib/python2.3/site-packages/mx/DateTime/ISO.py",
> line 313, in ParseAny
>     raise ValueError,'unsupported format: "%s"' %
> isostring
> ValueError: unsupported format: "21-12-2004"
> 
> Como lo puedo solucionar?
> 
> Fernando Villarroel N.
> 
> 
> __________________________________
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
> 
> 
> _______________________________________________
> Python-es mailing list
> Python-es en aditel.org
> http://listas.aditel.org/listinfo/python-es
> 
> 
>




Más información sobre la lista de distribución Python-es