Se puede convertir a una fecha valida primero strptime<http://docs.python.org/library/time.html#time.strptime>
http://stackoverflow.com/questions/466345/converting-string-into-datetime Luego la fecha se parsea nuevmane a un string con el formato deseado con strftime http://stackoverflow.com/questions/2316987/converting-a-string-to-a-formatted-date-time-string-using-python El 30 de mayo de 2013 20:24, Diego Uribe Gamez <diego.uribe.ga...@gmail.com>escribió: > muy bueno, y el + como lo quitarías? > > > El 30 de mayo de 2013 13:17, Manuel A. Estevez Fernandez < > stvz...@gmail.com> escribió: > >> Prueba con >> >> import urllib >> urllib.unquote(fecha) >> '30/05/2013+00:00:00' >> >> by: >> >> ISC. Manuel Alejandro Estévez Fernández >> >> >> >> El 30 de mayo de 2013 13:00, Diego Uribe Gamez < >> diego.uribe.ga...@gmail.com> escribió: >> >>> estoy enviando un string al servidor por Post pero cuando llega me >>> sale mal escrita, como la arreglo usando python? >>> >>> fecha = '30%2F05%2F2013+00%3A00%3A00' >>> >>> intente hacer replace pero no funciona: >>> >>> fecha.replace('%2F','/') >>> >>> la idea es que quede así: '30/05/2013 00:00:00' >>> >>> -- >>> *Diego Alonso Uribe Gamez* >>> ------------------------------ >>> >>> *Desarrollador web* >>> >>> Twitter: @DiegoUG <http://www.twitter.com/DiegoUG> >>> >>> Google+: http://gplus.to/diegoug >>> ------------------------------ >>> >>> >>> _______________________________________________ >>> Python-es mailing list >>> Python-es@python.org >>> http://mail.python.org/mailman/listinfo/python-es >>> FAQ: http://python-es-faq.wikidot.com/ >>> >>> >> >> _______________________________________________ >> Python-es mailing list >> Python-es@python.org >> http://mail.python.org/mailman/listinfo/python-es >> FAQ: http://python-es-faq.wikidot.com/ >> >> > > > -- > *Diego Alonso Uribe Gamez* > ------------------------------ > > *Desarrollador web* > > Twitter: @DiegoUG <http://www.twitter.com/DiegoUG> > > Google+: http://gplus.to/diegoug > ------------------------------ > > > _______________________________________________ > Python-es mailing list > Python-es@python.org > http://mail.python.org/mailman/listinfo/python-es > FAQ: http://python-es-faq.wikidot.com/ > >
_______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/